Skip to content

Commit

Permalink
ci: Use tree-sitter actions
Browse files Browse the repository at this point in the history
  • Loading branch information
savq committed Apr 14, 2024
1 parent ec88a55 commit 9eef10b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 20 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,13 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [macos-latest, ubuntu-latest]
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up tree-sitter
uses: tree-sitter/setup-action/cli@v1
- name: Run tests
uses: tree-sitter/parser-test-action@v2
with:
node-version: 18
- run: npm install
- run: npm test
test_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18
- run: npm install
- run: npm run-script test-windows
test-library: ${{runner.os == 'Linux'}}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
[![crates][crates]](https://crates.io/crates/tree-sitter-julia)
[![npm][npm]](https://www.npmjs.com/package/tree-sitter-julia)

Julia grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter).
A [tree-sitter](https://github.com/tree-sitter/tree-sitter) parser for [Julia](https://julialang.org/).

### References
## References

- [The Julia Parser](https://github.com/JuliaLang/julia/blob/master/src/julia-parser.scm)
- [Julia ASTs documentation](https://docs.julialang.org/en/v1/devdocs/ast/)
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tree-sitter-julia",
"version": "0.20.0",
"version": "0.22.0",
"description": "Julia grammar for tree-sitter",
"main": "bindings/node",
"types": "bindings/node",
Expand Down Expand Up @@ -33,8 +33,7 @@
},
"scripts": {
"build": "tree-sitter generate && node-gyp build",
"test": "tree-sitter test && script/parse-examples",
"test-windows": "tree-sitter test",
"test": "tree-sitter test",
"install": "node-gyp-build",
"prebuildify": "prebuildify --napi --strip"
},
Expand Down

0 comments on commit 9eef10b

Please sign in to comment.