Skip to content

πŸ§ͺ Testing code cov - not meant to be merge #540

πŸ§ͺ Testing code cov - not meant to be merge

πŸ§ͺ Testing code cov - not meant to be merge #540

Workflow file for this run

name: CI
on:
push:
branches:
- develop
pull_request:
types:
- opened
- reopened
- synchronize
- closed
merge_group:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
change-detection:
name: πŸ” Change
uses: ./.github/workflows/reusable-change-detection.yml
tests:
name: πŸ‡¨β€Œ Test
needs: change-detection
if: fromJSON(needs.change-detection.outputs.run-tests) && github.event.action != 'closed'
uses: ./.github/workflows/reusable-cpp-ci.yml
with:
# do not try to build docs in test builds
cmake-args: "-DBUILD_QDMI_DOCS=OFF -G Ninja"
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
linter:
name: πŸ‡¨β€Œ Lint
needs: change-detection
if: fromJSON(needs.change-detection.outputs.run-linter) && github.event.action != 'closed'
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-linter.yml@v1.17.0
with:
clang-version: 19
cpp-linter-extra-args: ""
# do not try to build docs in linter builds
cmake-args: "-DBUILD_QDMI_DOCS=OFF"
docs:
name: πŸ“ Build and Deploy Docs
needs: change-detection
if: fromJSON(needs.change-detection.outputs.run-docs)
uses: ./.github/workflows/reusable-docs.yml
permissions:
contents: write
pull-requests: write
required-checks-pass: # This job does nothing and is only used for branch protection
name: 🚦 Check
if: always()
needs:
- change-detection
- tests
- linter
- docs
runs-on: ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
allowed-skips: >-
${{
fromJSON(needs.change-detection.outputs.run-tests)
&& '' || 'tests,'
}} ${{
fromJSON(needs.change-detection.outputs.run-linter)
&& '' || 'linter,'
}} ${{
fromJSON(needs.change-detection.outputs.run-docs)
&& '' || 'docs,'
}}
jobs: ${{ toJSON(needs) }}