Skip to content

ci: refactor (#3)

ci: refactor (#3) #22

Workflow file for this run

name: CI
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize]
paths-ignore:
- '**/*.md'
- '!.github/workflows/ci.yml'
push:
branches:
- main
- "renovate/**"
paths-ignore:
- '**/*.md'
- '!.github/workflows/ci.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.ref_name != 'main' }}
defaults:
run:
shell: bash
jobs:
test:
name: Test
strategy:
fail-fast: false
matrix:
include:
# - os: windows-latest
- os: ubuntu-latest
- os: macos-14
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: Boshen/setup-rust@main
with:
save-cache: ${{ github.ref_name == 'main' }}
- uses: pnpm/[email protected]
with:
version: latest
run_install: true
- run: cargo test
lint:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: Boshen/setup-rust@main
with:
components: clippy
- run: cargo clippy --all-targets --all-features -- -D warnings
wasm:
name: Wasm
runs-on: ubuntu-latest
steps:
- uses: taiki-e/checkout-action@v1
- uses: Boshen/setup-rust@main
with:
cache-key: wasm
save-cache: ${{ github.ref_name == 'main' }}
- name: Check
run: |
rustup target add wasm32-unknown-unknown
cargo check --target wasm32-unknown-unknown --features wasm_bindgen