Crate-level API changes for tree-sitter-lint #213
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: | |
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' |