Skip to content

Commit

Permalink
use cargo to install v0.20.3
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis committed Jan 22, 2022
1 parent cc2beee commit 69fc0f9
Show file tree
Hide file tree
Showing 3 changed files with 237 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Install cargo
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Install tree-sitter-cli
run: cargo install tree-sitter-cli

- name: Install Node
uses: actions/setup-node@v2
with:
Expand All @@ -28,10 +36,10 @@ jobs:
run: npm ci

- name: Ensure generated parser files are up to date
run: npx tree-sitter generate
run: tree-sitter generate

- name: Run tree-sitter tests
run: npx tree-sitter test
run: tree-sitter test

- name: Check formatting
run: npm run format-check
12 changes: 10 additions & 2 deletions .github/workflows/generate-parser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Install cargo
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Install tree-sitter-cli
run: cargo install tree-sitter-cli

- name: Install Node
uses: actions/setup-node@v2
with:
Expand All @@ -33,8 +41,8 @@ jobs:

- name: Generate parser files
run: |
npx tree-sitter generate
npx tree-sitter build-wasm
tree-sitter generate
tree-sitter build-wasm
- name: Commit generated parser files
uses: stefanzweifel/git-auto-commit-action@v4
Expand Down
217 changes: 217 additions & 0 deletions src/parser.c

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 69fc0f9

Please # to comment.