-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.12 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
name: Main branch CI
on:
pull_request:
branches:
- main
push:
branches:
- main
schedule:
- cron: "0 7 * * 0"
jobs:
check-libraries:
uses: canonical/sdcore-github-workflows/.github/workflows/check-libraries.yaml@main
secrets: inherit
lint-report:
uses: canonical/sdcore-github-workflows/.github/workflows/lint-report.yaml@main
static-analysis:
uses: canonical/sdcore-github-workflows/.github/workflows/static-analysis.yaml@main
unit-tests-with-coverage:
uses: canonical/sdcore-github-workflows/.github/workflows/unit-test.yaml@main
integration-test:
uses: canonical/sdcore-github-workflows/.github/workflows/integration-test.yaml@main
with:
charm-file-name: "sdcore-udr_ubuntu-22.04-amd64.charm"
publish-charm:
name: Publish Charm
needs:
- lint-report
- static-analysis
- unit-tests-with-coverage
- integration-test
if: ${{ github.ref_name == 'main' }}
uses: canonical/sdcore-github-workflows/.github/workflows/publish-charm.yaml@main
with:
charm-file-name: "sdcore-udr_ubuntu-22.04-amd64.charm"
secrets: inherit