From add11de0124f83fc94df9afd4893f7240b05ae8b Mon Sep 17 00:00:00 2001 From: systemfsoftware-bot Date: Fri, 20 Nov 2026 20:25:58 -0500 Subject: [PATCH] ci: add an unconditional check job on pull requests --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..bc8590f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: CI + +# One job on every pull request, with no path filter, so the required `check` is emitted for every change, docs-only +# ones included. It runs the same two validators as the pre-commit hook. +on: + push: + branches: [main] + pull_request: + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + +jobs: + check: + name: check + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - uses: denoland/setup-deno@22d081ff2d3a40755e97629de92e3bcbfa7cf2ed # v2 + with: + deno-version: v2.x + - name: Validate the constitution + run: deno task test + - name: Validator tests + run: deno task test:validator