Skip to content

Merkle graph

Merkle graph #52

Workflow file for this run

name: Test
on:
push:
pull_request:
jobs:
check-flake:
name: Check flake
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install nix
uses: cachix/install-nix-action@v24
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Check flake
run: nix flake check --all-systems
test-wasm:
name: Test WASM
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install nix
uses: cachix/install-nix-action@v24
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Enable Rust cache
uses: Swatinem/rust-cache@v2
- name: Run WASM tests
run: |
nix develop --command bash -c "wasm-pack test --headless --firefox"
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install nix
uses: cachix/install-nix-action@v24
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Enable Rust cache
uses: Swatinem/rust-cache@v2
- name: Run clippy
run: |
nix develop --command bash -c "cargo clippy --all-targets -- --deny warnings"
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install nix
uses: cachix/install-nix-action@v24
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Enable Rust cache
uses: Swatinem/rust-cache@v2
- name: Run rustfmt
run: |
nix develop --command bash -c "cargo fmt --all -- --check"