chore(deps): bump the rust-minor group across 1 directory with 2 updates #10
Workflow file for this run
This file contains hidden or 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] | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUSTFLAGS: -D warnings | |
| jobs: | |
| rust: | |
| name: cargo ${{ matrix.action }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - action: fmt | |
| cmd: cargo fmt --all --check | |
| components: rustfmt | |
| - action: clippy | |
| cmd: cargo clippy --all-targets --all-features | |
| components: clippy | |
| - action: test | |
| cmd: cargo test --all-features | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: ${{ matrix.components }} | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Install Node (for --deep integration tests) | |
| if: matrix.action == 'test' | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20 | |
| - run: ${{ matrix.cmd }} | |
| audit: | |
| name: cargo audit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: cargo install --locked cargo-audit | |
| - run: cargo audit | |
| js: | |
| name: node checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20 | |
| - name: Syntax-check all JS | |
| run: | | |
| set -e | |
| for f in packages/npm/bin/*.js packages/npm/scripts/*.mjs scripts/*.mjs; do | |
| [ -f "$f" ] && node --check "$f" | |
| done | |
| - name: Dry-run npm pack (verify tarball shape) | |
| run: | | |
| cd packages/npm | |
| npm pack --dry-run 2>&1 | tee /tmp/pack.log | |
| # Main package must not accidentally ship binaries. | |
| if grep -qE '(\.exe|/bin/react-compiler-cli\b)' /tmp/pack.log; then | |
| echo "ERROR: main package contains a native binary — it must come from optionalDependencies" | |
| exit 1 | |
| fi | |
| version-sync: | |
| name: versions in sync | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20 | |
| - name: Check Cargo.toml / package.json / optionalDependencies agree | |
| run: node scripts/check-versions.mjs |