This repository has been archived by the owner on Nov 23, 2024. It is now read-only.
Update dependency node to v18.20.3 #105
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
tree-sitter-test: | |
name: Run tree-sitter tests π³ | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: .nvmrc | |
#cache: "npm" <-- need to commit a lockfile for this | |
- run: npm install | |
- run: npm test | |
build-crate: | |
name: Check rust bindings π¦ | |
needs: [tree-sitter-test] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- uses: actions/cache@v3 | |
with: | |
key: ${{ runner.os }}-cargo-build-${{ hashFiles('./Cargo.lock') }} | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
check-formatting: | |
name: Check formatting π | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: .nvmrc | |
#cache: "npm" <-- need to commit a lockfile for this | |
- run: npm install | |
- run: ./node_modules/.bin/prettier --check grammar.js |