From 5768c84c296a1d498ab06f9249ede627b38d0c46 Mon Sep 17 00:00:00 2001 From: Claude Code Bot Date: Thu, 1 Oct 2026 16:52:28 -0700 Subject: [PATCH] ci(tests): run the test suites on PRs Run both hermetic suites on pull requests only. Advances #75 --- .github/workflows/tests.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..a15e366 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,25 @@ +name: Tests + +# Pull requests only: the suites run once, in CI, and are not repeated on +# push to main. +on: + pull_request: + +permissions: + contents: read + +jobs: + tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + # Both suites are hermetic: they put a stub `gh` on PATH and never + # reach GitHub. They need bash and jq; ubuntu-latest ships both. + - name: Run org-migration tests + run: bash scripts/org-migration/tests/run-tests.sh + + - name: Run dependabot-digest tests + run: bash scripts/dependabot-digest/tests/run-tests.sh