diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fd127692..a5366f2c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,11 +1,19 @@ name: CI on: - push: - branches: ["main"] pull_request: - branches: ["main"] - workflow_dispatch: + types: [opened, synchronize, reopened, ready_for_review] + + # allow manual triggers + workflow_dispatch: {} + +# Cancel in progress workflows on pull_requests. +# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +permissions: read-all jobs: test: