Adds option to protect both triples and tractors from pairs #1288
Workflow file for this run
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 | |
jobs: | |
build-and-test: | |
name: "Build and test the code" | |
runs-on: ubuntu-latest | |
services: | |
redis: | |
image: redis | |
ports: | |
- 6379:6379 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Yarn deps for frontend | |
run: yarn install | |
working-directory: ./frontend | |
- name: Install wasm-pack | |
uses: jetli/wasm-pack-action@v0.4.0 | |
with: | |
version: 'latest' | |
- name: Setup Rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
components: clippy, rustfmt | |
- name: Cache cargo build | |
uses: Swatinem/rust-cache@v2 | |
- name: Build frontend | |
run: yarn build | |
working-directory: ./frontend | |
- name: Test frontend | |
run: yarn test | |
working-directory: ./frontend | |
- name: Lint frontend | |
run: yarn lint | |
working-directory: ./frontend | |
- name: Check frontend formatting | |
run: yarn prettier --check | |
working-directory: ./frontend | |
- name: Lint Rust code | |
run: cargo clippy | |
- name: Check Rust formatting | |
run: cargo fmt --all -- --check | |
- name: Test Rust code | |
run: cargo test --all |