-
Notifications
You must be signed in to change notification settings - Fork 1k
61 lines (53 loc) 路 2.14 KB
/
Copy pathdevops.yml
File metadata and controls
61 lines (53 loc) 路 2.14 KB
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
name: DevOps
on:
push:
branches: ["main"]
paths:
- "**/*"
- "!.github/**" # Important: Exclude PRs related to .github from auto-run
- "!.github/workflows/**" # Important: Exclude PRs related to .github/workflows from auto-run
- "!.github/actions/**" # Important: Exclude PRs related to .github/actions from auto-run
pull_request:
branches: ["main"]
paths:
- "**/*"
- "!.github/**" # Important: Exclude PRs related to .github from auto-run
- "!.github/workflows/**" # Important: Exclude PRs related to .github/workflows from auto-run
- "!.github/actions/**" # Important: Exclude PRs related to .github/actions from auto-run
# Pull requests touching .github are excluded from the automatic runs above,
# since the workflow definition that would run is the one from the pull
# request. This is the deliberate way to run the chain for them anyway, by
# someone with write access. The job conditions below allow for it.
workflow_dispatch:
# Cancel any in-progress runs when a new commit is pushed
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
packages: write
jobs:
check_paths:
uses: ./.github/workflows/check_paths.yml
spell_check:
needs: check_paths
if: needs.check_paths.outputs.githubfolder == 'false' || github.event_name == 'workflow_dispatch'
uses: ./.github/workflows/spell_check.yml
ensure_linting:
needs:
- check_paths
- spell_check
if: needs.check_paths.outputs.githubfolder == 'false' || github.event_name == 'workflow_dispatch'
uses: ./.github/workflows/ensure_linting.yml
elixir_dep_verification_and_static_analysis:
needs:
- check_paths
- ensure_linting
if: needs.check_paths.outputs.githubfolder == 'false' || github.event_name == 'workflow_dispatch'
uses: ./.github/workflows/elixir_dep_verification_and_static_analysis.yml
elixir_test:
needs:
- check_paths
- ensure_linting
if: needs.check_paths.outputs.githubfolder == 'false' || github.event_name == 'workflow_dispatch'
uses: ./.github/workflows/elixir_test.yml