blob: f91832477d1c6e7d417644c9f8c749077724d278 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
name: "Check CloudMQTT"
on:
push:
branches: [main, staging, trying]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.2.0
- uses: cachix/install-nix-action@v18
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v12
with:
name: cloudmqtt
# If you chose API tokens for write access OR if you have a private cache
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix --extra-experimental-features "nix-command flakes" flake check
license:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.2.0
- name: Check License Lines
uses: kt3k/license_checker@v1.0.6
dco-check:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v3.2.0
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v4.4.0
with:
python-version: '3.x'
- name: Install gitlint
run: pip install gitlint
- run: gitlint --commits $(git merge-base origin/main HEAD)..
fixup-check:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v3.2.0
- uses: 13rac1/block-fixup-merge-action@v2.0.0
|