-
Notifications
You must be signed in to change notification settings - Fork 30
34 lines (34 loc) · 992 Bytes
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Build/test
on:
push:
branches:
- 'master'
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- uses: actions/setup-node@v3
with:
node-version: '18'
- run: npm install
- name: generate grammar
run: npm run build
- name: check for uncommited changes
run: git diff --exit-code
- run: npm test
- name: check test file formatting
run: npx tree-sitter test -u && git diff --exit-code
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npx prettier --check *.js