Skip to content

Commit

Permalink
Automate parser generation
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanklosko committed Sep 30, 2021
1 parent 8f1f7bc commit d9f0b78
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Generate
on:
push:
branches:
- main
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: "14.x"
- name: Cache npm dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install npm dependencies
run: npm ci
- name: Generate parser
run: npx tree-sitter generate
- name: Update parser files
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Generate parser
file_pattern: src

0 comments on commit d9f0b78

Please sign in to comment.