Skip to content

[ts-version] bump @1.1.2 #57

[ts-version] bump @1.1.2

[ts-version] bump @1.1.2 #57

name: Cargo lint and test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
lint-and-test:
runs-on: ubuntu-latest
timeout-minutes: 50
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- uses: dtolnay/[email protected]
with:
components: rustfmt, clippy
- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- run: pnpm install
- run: pnpm lint
- run: pnpm test:cargo