Skip to content

Commit d1a7398

Browse files
Create github actions for CI
1 parent d95de12 commit d1a7398

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

Diff for: .github/workflows/main.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
build:
14+
name: Build Grammar
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Setup
19+
run: npm ci
20+
- name: Build Tool
21+
run: npm run build:grammar
22+
- name: Ensure no diff
23+
run: git diff --exit-code
24+
25+
test:
26+
name: Run Tests
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v4
30+
- name: Setup
31+
run: npm ci
32+
- name: Run Tests
33+
run: npm run test

0 commit comments

Comments
 (0)