-
Notifications
You must be signed in to change notification settings - Fork 7
47 lines (39 loc) · 1023 Bytes
/
main.yaml
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
name: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
concurrency:
group: ${{ github.ref == 'refs/heads/main' && format('ignore-main-{0}', github.run_id) || format('{0}-{1}', github.workflow, github.ref_name) }}
cancel-in-progress: true
jobs:
lint-report:
uses: ./.github/workflows/lint-report.yaml
static-analysis:
name: Static analysis
uses: ./.github/workflows/static-analysis.yaml
unit-tests-with-coverage:
uses: ./.github/workflows/unit-test.yaml
build:
needs:
- lint-report
- static-analysis
- unit-tests-with-coverage
uses: ./.github/workflows/build.yaml
secrets: inherit
integration-test:
needs:
- build
uses: ./.github/workflows/integration-test.yaml
publish-charm:
needs:
- lint-report
- static-analysis
- unit-tests-with-coverage
- integration-test
if: ${{ github.ref_name == 'main' }}
uses: ./.github/workflows/publish-charm.yaml
secrets: inherit