Skip to content

Crate-level API changes for tree-sitter-lint #205

Crate-level API changes for tree-sitter-lint

Crate-level API changes for tree-sitter-lint #205

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: ["*"]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Update local toolchain
run: |
rustup update
rustup component add clippy
rustup toolchain install nightly --allow-downgrade -c rustfmt
- uses: Swatinem/rust-cache@v2
- run: cargo +nightly fmt -- --check
if: matrix.os == 'ubuntu-latest'
- run: cargo clippy --all-targets --tests -- -D warnings
- run: cargo test
- run: RUSTDOCFLAGS='--deny warnings' cargo doc --no-deps
if: matrix.os == 'ubuntu-latest'