-
Notifications
You must be signed in to change notification settings - Fork 6
53 lines (44 loc) · 1.6 KB
/
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
48
49
50
51
52
53
name: CI
on:
pull_request:
branches: ["main", "release-*"]
push:
branches: ["main", "release-*"]
concurrency:
group: ${{ (github.ref == 'refs/heads/main' && format('ignore-main-{0}', github.run_id)) || (contains(github.ref, 'refs/heads/release-') && format('ignore-release-{0}', github.run_id)) || format('{0}-{1}', github.workflow, github.ref_name) }}
cancel-in-progress: true
jobs:
lint-report:
uses: canonical/identity-credentials-workflows/.github/workflows/lint-report.yaml@main
grafana-dashboard-lint-report:
uses: canonical/identity-credentials-workflows/.github/workflows/grafana-dashboard-lint-report.yaml@main
static-analysis:
name: Static analysis
uses: canonical/identity-credentials-workflows/.github/workflows/static-analysis.yaml@main
unit-tests-with-coverage:
uses: canonical/identity-credentials-workflows/.github/workflows/unit-test.yaml@main
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:
name: Publish Charm
needs:
- lint-report
- grafana-dashboard-lint-report
- static-analysis
- unit-tests-with-coverage
- integration-test
if: ${{ github.ref_name == 'main' || startsWith(github.ref_name, 'release-') }}
uses: canonical/identity-credentials-workflows/.github/workflows/publish-charm.yaml@main
secrets:
CHARMCRAFT_AUTH: ${{ secrets.CHARMCRAFT_AUTH }}
with:
track-name: 1.16