-
Notifications
You must be signed in to change notification settings - Fork 9
75 lines (71 loc) · 2.09 KB
/
ci_lint.yml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Lint
on:
pull_request_target:
env:
TZ: Europe/Berlin
defaults:
run:
shell: bash -Eeuxo pipefail {0}
jobs:
# Cancel other workflows that are dependent on this workflow by adding jobs that have the same concurrency group.
cancel_linux:
name: Cancel running Workflows
concurrency:
group: linux-${{ github.event.pull_request.number }}
cancel-in-progress: true
runs-on: ubuntu-22.04
steps:
- name: "Cancel Linux"
run: echo "Cancelling Linux"
cancel_macos:
name: Cancel running Workflows
concurrency:
group: macos-${{ github.event.pull_request.number }}
cancel-in-progress: true
runs-on: ubuntu-22.04
steps:
- name: "Cancel macOS"
run: echo "Cancelling macOS"
cancel_misc:
name: Cancel running Workflows
concurrency:
group: misc-${{ github.event.pull_request.number }}
cancel-in-progress: true
runs-on: ubuntu-22.04
steps:
- name: "Cancel Misc"
run: echo "Cancelling Misc"
cancel_coverage:
name: Cancel running Workflows
concurrency:
group: coverage-${{ github.event.pull_request.number }}
cancel-in-progress: true
runs-on: ubuntu-22.04
steps:
- name: "Cancel Coverage"
run: echo "Cancelling Coverage"
cancel_documentation:
name: Cancel running Workflows
concurrency:
group: documentation-${{ github.event.pull_request.number }}
cancel-in-progress: true
runs-on: ubuntu-22.04
steps:
- name: "Cancel Coverage"
run: echo "Cancelling Coverage"
lint:
name: Lint
concurrency:
group: lint-${{ github.event.pull_request.number }}
cancel-in-progress: true
needs: [cancel_linux, cancel_macos, cancel_misc, cancel_coverage, cancel_documentation]
runs-on: ubuntu-22.04
timeout-minutes: 15
steps:
- name: Run lint
uses: seqan/actions/lint@main
with:
clang_format: 15
token: ${{ secrets.SEQAN_ACTIONS_PAT }}
gpg_key: ${{ secrets.SEQAN_ACTIONS_GPG_KEY }}
gpg_passphrase: ${{ secrets.SEQAN_ACTIONS_GPG_PASSPHRASE }}