Skip to content

fix: scope main npm wrapper as @tech-byte-frontier/hardgate #11

fix: scope main npm wrapper as @tech-byte-frontier/hardgate

fix: scope main npm wrapper as @tech-byte-frontier/hardgate #11

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
rust:
name: rust (test + lint)
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- run: cargo fmt --check
- run: cargo clippy --all-targets -- -D warnings
- run: cargo test --locked
npm-wrapper:
name: npm wrapper (node + pnpm compat)
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: cargo build --locked
- run: node scripts/sync-npm-version.mjs --check
- run: node scripts/check-npm-quality.mjs
- run: node npm/hardgate/bin/hardgate.js --version
- run: node tests/npm-wrapper.test.mjs