Skip to content

fix: remove update-lib step from v1.5 scheduled runs (#456) #2010

fix: remove update-lib step from v1.5 scheduled runs (#456)

fix: remove update-lib step from v1.5 scheduled runs (#456) #2010

Workflow file for this run

name: Main branch CI
on:
pull_request:
branches:
- main
push:
branches:
- main
schedule:
- cron: '20 7 * * 0'
jobs:
codeql:
name: CodeQL Analysis
uses: canonical/sdcore-github-workflows/.github/workflows/[email protected]
check-libraries:
uses: canonical/sdcore-github-workflows/.github/workflows/[email protected]
secrets:
CHARMCRAFT_AUTH: ${{ secrets.CHARMCRAFT_AUTH }}
lint-report:
uses: canonical/sdcore-github-workflows/.github/workflows/[email protected]
static-analysis:
uses: canonical/sdcore-github-workflows/.github/workflows/[email protected]
terraform-check:
uses: canonical/sdcore-github-workflows/.github/workflows/[email protected]
unit-tests-with-coverage:
uses: canonical/sdcore-github-workflows/.github/workflows/[email protected]
build:
needs:
- lint-report
- static-analysis
- unit-tests-with-coverage
uses: canonical/sdcore-github-workflows/.github/workflows/[email protected]
secrets: inherit
integration-test:
needs:
- build
uses: canonical/sdcore-github-workflows/.github/workflows/[email protected]
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/[email protected]
with:
track-name: 1.6
secrets:
CHARMCRAFT_AUTH: ${{ secrets.CHARMCRAFT_AUTH }}
publish-charm-on-push:
name: Publish Developer Charm To Branch
needs:
- lint-report
- static-analysis
- unit-tests-with-coverage
- integration-test
if: ${{ (github.ref_name != 'main') && (github.event_name == 'push') }}
uses: canonical/sdcore-github-workflows/.github/workflows/[email protected]
with:
branch-name: ${{ github.ref_name }}
track-name: 1.6
secrets:
CHARMCRAFT_AUTH: ${{ secrets.CHARMCRAFT_AUTH }}
fiveg-n3-lib-needs-publishing:
runs-on: ubuntu-24.04
outputs:
needs-publishing: ${{ steps.changes.outputs.fiveg_n3 }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
fiveg_n3:
- 'lib/charms/sdcore_upf_k8s/v0/fiveg_n3.py'
publish-fiveg-n3-lib:
name: Publish Lib
needs:
- publish-charm
- fiveg-n3-lib-needs-publishing
if: ${{ github.ref_name == 'main' }}
uses: canonical/sdcore-github-workflows/.github/workflows/[email protected]
with:
lib-name: "charms.sdcore_upf_k8s.v0.fiveg_n3"
secrets: inherit
fiveg-n4-lib-needs-publishing:
runs-on: ubuntu-24.04
outputs:
needs-publishing: ${{ steps.changes.outputs.fiveg_n4 }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
fiveg_n4:
- 'lib/charms/sdcore_upf_k8s/v0/fiveg_n4.py'
publish-fiveg-n4-lib:
name: Publish Lib
needs:
- publish-charm
- fiveg-n4-lib-needs-publishing
if: ${{ github.ref_name == 'main' }}
uses: canonical/sdcore-github-workflows/.github/workflows/[email protected]
with:
lib-name: "charms.sdcore_upf_k8s.v0.fiveg_n4"
secrets: inherit