Skip to content
Merged
Show file tree
Hide file tree
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
62 changes: 62 additions & 0 deletions .github/workflows/all-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: All tests

# One Run workflow button that starts, on master, the CI workflow of each
# Runvil repository that holds code, plus each longer test workflow whose
# box is ticked. The job waits for every run and writes one summary to this
# run's Summary page: each run's result, commit, duration, and test counts,
# then every failed job and failed test. tools/run-all-tests.mjs lists the
# workflows.
#
# Starting and reading runs in other repositories needs the repository
# secret RUNVIL_ALL_TESTS_TOKEN: a token with the permission Actions: Read
# and write on every repository the script lists, made by someone with
# write access to all of them.

on:
workflow_dispatch:
inputs:
stt-miri:
description: Also run the Gateway's STT Miri workflow (up to about 31 minutes)
type: boolean
default: false
installers:
description: Also run the Installers workflow on five systems (about 20 minutes)
type: boolean
default: false
bundle:
description: Also run Workshop's Bundle workflow (about 18 minutes)
type: boolean
default: false

# A second click waits until the first run has finished.
concurrency:
group: all-tests
cancel-in-progress: false

# The checkout reads this repository; the script acts with the secret.
permissions:
contents: read

jobs:
all-tests:
runs-on: ubuntu-latest
timeout-minutes: 180
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 22

- name: Start every workflow and summarize the runs
env:
GH_TOKEN: ${{ secrets.RUNVIL_ALL_TESTS_TOKEN }}
STT_MIRI: ${{ inputs.stt-miri }}
INSTALLERS: ${{ inputs.installers }}
BUNDLE: ${{ inputs.bundle }}
run: |
args=()
if [ "$STT_MIRI" = true ]; then args+=(--extra stt-miri); fi
if [ "$INSTALLERS" = true ]; then args+=(--extra installers); fi
if [ "$BUNDLE" = true ]; then args+=(--extra bundle); fi
node tools/run-all-tests.mjs "${args[@]}"
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches: [master, main]
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -89,6 +90,18 @@ jobs:
- name: Wording
run: node --test tools/docs-claims.mjs

scripts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 22

- name: Test the All tests script
run: node --test tools/run-all-tests.test.mjs

supply-chain:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -143,7 +156,7 @@ jobs:
# or that job bypasses this gate.
ci-green:
runs-on: ubuntu-latest
needs: [fmt, clippy, test, docs, wording, supply-chain, dylint]
needs: [fmt, clippy, test, docs, wording, scripts, supply-chain, dylint]
if: always()
steps:
- name: Verify every job succeeded
Expand Down
Loading
Loading