Skip to content

build: apply npm pkg fix #48

build: apply npm pkg fix

build: apply npm pkg fix #48

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
cargo-vet:
name: Vet Dependencies
runs-on: ubuntu-latest
env:
CARGO_VET_VERSION: 0.3.0
steps:
- uses: actions/checkout@master
- name: Install Rust
run: rustup update stable && rustup default stable
- uses: actions/cache@v2
with:
path: ${{ runner.tool_cache }}/cargo-vet
key: cargo-vet-bin-${{ env.CARGO_VET_VERSION }}
- name: Add the tool cache directory to the search path
run: echo "${{ runner.tool_cache }}/cargo-vet/bin" >> $GITHUB_PATH
- name: Ensure that the tool cache is populated with the cargo-vet binary
run: cargo install --root ${{ runner.tool_cache }}/cargo-vet --version ${{ env.CARGO_VET_VERSION }} cargo-vet
- name: Invoke cargo-vet
run: cargo vet --locked
test:
name: Web Test Runner
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install rust-toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2022-09-20
targets: wasm32-unknown-unknown
components: rust-src
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: microsoft/playwright-github-action@v1
- name: Install dependencies and run tests
run: npm install && npm run build && npm test