Skip to content

Commit

Permalink
ci: fix node-gyp build
Browse files Browse the repository at this point in the history
  • Loading branch information
virchau13 committed Apr 21, 2024
1 parent aab56cd commit daeacdd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ jobs:
matrix:
os: [macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 18
- run: npm install
- run: npm test

test_windows:
runs-on: windows-2019
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 18
- run: npm install
- run: npm run-script test-windows
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Astro grammar for tree-sitter",
"main": "bindings/node",
"scripts": {
"build": "tree-sitter generate",
"build": "tree-sitter generate && node-gyp build",
"parse": "tree-sitter parse",
"test": "tree-sitter test && script/parse-examples",
"test-windows": "tree-sitter test"
Expand Down

0 comments on commit daeacdd

Please sign in to comment.