chore(deps): update pnpm to v10.2.1 #107
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: | |
workflow_dispatch: | |
pull_request: | |
types: [opened, synchronize] | |
push: | |
branches: | |
- main | |
- "renovate/**" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
cancel-in-progress: ${{ github.ref_name != 'main' }} | |
env: | |
RUSTFLAGS: "-D warnings" | |
jobs: | |
ci: | |
name: CI | |
runs-on: ubuntu-latest | |
steps: | |
- uses: taiki-e/checkout-action@v1 | |
- uses: oxc-project/[email protected] | |
with: | |
save-cache: ${{ github.ref_name == 'main' }} | |
components: clippy | |
- run: cargo check | |
- run: cargo clippy | |
- run: RUSTDOCFLAGS='-D warnings' cargo doc --no-deps --document-private-items | |
test-wasm32-unknown-unknown: | |
name: Check wasm32-unknown-unknown | |
runs-on: ubuntu-latest | |
steps: | |
- uses: taiki-e/checkout-action@v1 | |
- uses: oxc-project/[email protected] | |
with: | |
save-cache: ${{ github.ref_name == 'main' }} | |
cache-key: wasm | |
tools: wasm-pack | |
- name: Check | |
run: | | |
rustup target add wasm32-unknown-unknown | |
cargo check -p json-strip-comments-wasm --target wasm32-unknown-unknown | |
- uses: pnpm/[email protected] | |
with: | |
package_json_file: ./wasm/package.json | |
- uses: actions/setup-node@v4 | |
with: | |
cache: pnpm | |
cache-dependency-path: ./wasm/pnpm-lock.yaml | |
- working-directory: wasm | |
run: | | |
pnpm install --frozen-lockfile | |
pnpm run build | |
pnpm run test |