Skip to content

fix(deps): update rust crate oxc_ast_visit to 0.148 #104

fix(deps): update rust crate oxc_ast_visit to 0.148

fix(deps): update rust crate oxc_ast_visit to 0.148 #104

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
# zizmor's `concurrency-limits` rule: cancel any in-flight run for the
# same branch / PR when a new commit lands. Saves CI minutes on
# rapid-fire pushes and prevents stale runs from racing the new one.
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -D warnings
# Explicit least-privilege permissions for the whole workflow. zizmor's
# `excessive-permissions` rule flags the GITHUB_TOKEN default; we only
# need read access to check out the repo and download the Rust toolchain.
permissions:
contents: read
jobs:
test:
name: test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
# zizmor's `artipacked` rule: don't let the GITHUB_TOKEN leak
# into any artifact or cache.
persist-credentials: false
- name: Install Rust toolchain
# Pin to a specific stable release so the build is reproducible
# across runs and matches the MSRV in Cargo.toml. The `stable`
# ref would be marked "superfluous" by zizmor because the runner
# already has rustup; pinning to a version is the explicit
# reason to keep the action.
#
# 1.97.0 is the MSRV: every release of `oxc` we use requires
# rustc >= 1.97.0, and Cargo.toml's `rust-version` field
# enforces this on every `cargo` invocation.
uses: dtolnay/rust-toolchain@4cda84d5c5c54efe2404f9d843567869ab1699d4 # stable
with:
toolchain: 1.97.1
components: rustfmt, clippy
- name: Cache cargo registry & build
uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
- name: rustfmt
run: cargo fmt --all -- --check
- name: clippy
run: cargo clippy --all-targets -- -D warnings
- name: test
run: cargo test --all-features