Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
name: tests

# A branch is tested through its pull request, which runs on the merge
# commit GitHub prepares. Running on every push as well tested each commit
# twice. Pushes to master are still tested, and any other branch can be run
# by hand (Actions tab, "Run workflow").
on:
push:
branches: ["**"] # every branch; a version tag runs these tests through release.yml instead
branches: [master] # a version tag runs these tests through release.yml instead
pull_request:
workflow_call: # release.yml runs the whole workflow before it publishes
workflow_dispatch:
workflow_call: # release.yml runs the whole workflow before it publishes

# One run per pull request at a time: a new push to a pull request cancels
# the run of the commit it replaces. Runs on master are never cancelled,
# so every merged commit keeps its result.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

# The jobs only read the repository
permissions:
Expand Down
Loading