fix: build #69
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: Lint and Test | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
lint_and_test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/setup-nodejs | |
- uses: ./.github/actions/setup-ic-wasm | |
- name: Install NPM dependencies | |
run: npm ci | |
- name: Build frontend | |
run: NODE_ENV=production npm run build --quiet | |
- name: Build canister | |
run: | | |
./build.sh beacon | |
- name: Rust lint | |
run: cargo clippy --tests --benches -- -D clippy::all | |
- name: Rust test | |
run: cargo test | |
- name: Check Rust formatting | |
run: cargo fmt --all -- --check | |
- name: Check Frontend formatting | |
run: npm run format:check |