Skip to content

test: use scenario for unit testing #513

test: use scenario for unit testing

test: use scenario for unit testing #513

Workflow file for this run

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