diff --git a/.github/workflows/integrationtest.yml b/.github/workflows/integrationtest.yml index ceef0533..4bcd8e1d 100644 --- a/.github/workflows/integrationtest.yml +++ b/.github/workflows/integrationtest.yml @@ -6,11 +6,15 @@ # Instead, it is the right thing that the CI always covers the whole repository # and that it is as stable as possible. name: "Integration Test" -# Run on every push (tag, branch) and pull_request -on: [pull_request, push, merge_group] +on: + merge_group: + pull_request: + push: + branches: [main] concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.event_name }} - cancel-in-progress: true + # Keep a result for every commit on main. + cancel-in-progress: ${{ github.event_name != 'push' }} env: CARGO_TERM_COLOR: always jobs: diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml index 7b0d7f0c..3ecbcb1b 100644 --- a/.github/workflows/qa.yml +++ b/.github/workflows/qa.yml @@ -1,8 +1,13 @@ name: QA -on: [pull_request, push, merge_group] +on: + merge_group: + pull_request: + push: + branches: [main] concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.event_name }} - cancel-in-progress: true + # Keep a result for every commit on main. + cancel-in-progress: ${{ github.event_name != 'push' }} jobs: spellcheck: name: Spellcheck diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index cd6f92a2..c127732a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -6,11 +6,16 @@ # Instead, it is the right thing that the CI always covers the whole repository # and that it is as stable as possible. name: "Cargo workspace" -# Run on every push (tag, branch) and pull_request -on: [pull_request, push, workflow_dispatch, merge_group] +on: + merge_group: + pull_request: + push: + branches: [main] + workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ github.event_name }} - cancel-in-progress: true + # Keep a result for every commit on main. + cancel-in-progress: ${{ github.event_name != 'push' }} env: CARGO_TERM_COLOR: always jobs: