Add initial CI integration
This commit is contained in:
parent
99253703d0
commit
26d69abeb3
22
.github/workflows/tree-sitter.yml
vendored
Normal file
22
.github/workflows/tree-sitter.yml
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
name: Tree Sitter CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v1
|
||||
- name: Install Dependencies
|
||||
run: npm install
|
||||
- name: Check if generated file are up-to-date
|
||||
run: npm run build --if-present && git diff --exit-code
|
||||
- name: Run parser tests
|
||||
run: npm test
|
Reference in New Issue
Block a user