dev: ci install wasm-pack #4
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: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: windows-latest | |
timeout-minutes: 15 | |
name: "Lint, Test, Build web extension" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 50 | |
- name: Install pnpm | |
uses: pnpm/[email protected] | |
with: | |
version: "next-9" | |
- name: Install node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "pnpm" | |
- name: Install cargo | |
run: rustup toolchain install stable | |
- name: Install wasm-pack | |
run: pnpm add -g wasm-pack | |
- name: Construct | |
run: pnpm run construct:all | |
- name: Install pnpm deps | |
run: pnpm install | |
- name: Lint | |
run: pnpm run lint | |
- name: Test | |
run: pnpm run test | |
- name: Build web | |
run: pnpm run build:chrome && pnpm run build:firefox && pnpm run build:ios |