Skip to content

Merge branch 'main' into dependabot/pip/ruff-0.4.2 #493

Merge branch 'main' into dependabot/pip/ruff-0.4.2

Merge branch 'main' into dependabot/pip/ruff-0.4.2 #493

Workflow file for this run

name: Main branch CI
on:
pull_request:
branches:
- main
push:
schedule:
- cron: '40 6 * * 0'
jobs:
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]
terraform-check:
uses: canonical/sdcore-github-workflows/.github/workflows/[email protected]
static-analysis:
uses: canonical/sdcore-github-workflows/.github/workflows/[email protected]
unit-tests-with-coverage:
uses: canonical/sdcore-github-workflows/.github/workflows/[email protected]
integration-test:
uses: canonical/sdcore-github-workflows/.github/workflows/[email protected]
with:
charm-file-name: "sdcore-nrf-k8s_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/[email protected]
with:
charm-file-name: "sdcore-nrf-k8s_ubuntu-22.04-amd64.charm"
track-name: 1.5
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 }}
charm-file-name: "sdcore-nrf-k8s_ubuntu-22.04-amd64.charm"
track-name: 1.5
secrets:
CHARMCRAFT_AUTH: ${{ secrets.CHARMCRAFT_AUTH }}
lib-needs-publishing:
runs-on: ubuntu-22.04
outputs:
needs-publishing: ${{ steps.changes.outputs.fiveg_nrf }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
fiveg_nrf:
- 'lib/charms/sdcore_nrf_k8s/v0/fiveg_nrf.py'
publish-lib:
name: Publish Lib
needs:
- publish-charm
- lib-needs-publishing
if: ${{ github.ref_name == 'main' }} && ${{ needs.changes.outputs.needs-publishing == 'true' }}
uses: canonical/sdcore-github-workflows/.github/workflows/[email protected]
with:
lib-name: "charms.sdcore_nrf_k8s.v0.fiveg_nrf"
secrets:
CHARMCRAFT_AUTH: ${{ secrets.CHARMCRAFT_AUTH }}