Skip to content

Merge pull request #77 from TaggrNetwork/release #580

Merge pull request #77 from TaggrNetwork/release

Merge pull request #77 from TaggrNetwork/release #580

Workflow file for this run

name: Lint and Test
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
lint_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-nodejs
- uses: ./.github/actions/setup-build-deps
- name: Install NPM dependencies
run: npm ci
- name: Install PocketIC
run: cd tests && ./download-pocket-ic.sh
- name: Build frontend
run: NODE_ENV=production npm run build --quiet
- name: Build canister
run: |
./build.sh bucket
./build.sh taggr
- name: Rust lint
run: cargo clippy --tests --benches -- -D clippy::all
- name: Rust test
run: cargo test -- --test-threads 1
- name: Check Rust formatting
run: cargo fmt --all -- --check
- name: Check Frontend formatting
run: npm run format:check