Skip to content

Fix clippy warning.

Fix clippy warning. #2

Workflow file for this run

name: CI
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
clippy:
runs-on: windows-latest
defaults:
run:
working-directory: ./native
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2
with:
workspaces: ./native
- name: clippy
run: cargo clippy --all-targets --workspace -- -D warnings
fmt:
runs-on: windows-latest
defaults:
run:
working-directory: ./native
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: rustfmt
run: cargo fmt --all -- --check
test:
runs-on: windows-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: ./native
- name: Using pnpm v8.x
uses: pnpm/action-setup@v2
with:
version: 8
- name: Using Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: '20.x'
cache: 'pnpm'
- name: Install JS dependencies
run: pnpm install --frozen-lockfile
- name: Tests
run: pnpm test