Skip to content

Commit 3e458c4

Browse files
ci: add an unconditional check job on pull requests (#36)
Co-authored-by: systemfsoftware-bot <systemfsoftware-bot@users.noreply.github.com>
1 parent 66d7d94 commit 3e458c4

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
# One job on every pull request, with no path filter, so the required `check` is emitted for every change, docs-only
4+
# ones included. It runs the same two validators as the pre-commit hook.
5+
on:
6+
push:
7+
branches: [main]
8+
pull_request:
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: read
13+
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
16+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
17+
18+
jobs:
19+
check:
20+
name: check
21+
runs-on: ubuntu-latest
22+
timeout-minutes: 10
23+
steps:
24+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
25+
with:
26+
persist-credentials: false
27+
- uses: denoland/setup-deno@22d081ff2d3a40755e97629de92e3bcbfa7cf2ed # v2
28+
with:
29+
deno-version: v2.x
30+
- name: Validate the constitution
31+
run: deno task test
32+
- name: Validator tests
33+
run: deno task test:validator

0 commit comments

Comments
 (0)