Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

Update dependency prettier to v3 #116

Update dependency prettier to v3

Update dependency prettier to v3 #116

Workflow file for this run

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