Skip to content

Updates

Updates #137

Workflow file for this run

name: Check
on:
pull_request:
branches: [ "main" ]
jobs:
check:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- run: rustup toolchain install stable --profile minimal
- run: rustup component add clippy
- uses: actions/cache/restore@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
frontend/target/
key: frontend-${{ hashFiles('frontend/Cargo.toml') }}
restore-keys: frontend-
- uses: actions/cache/restore@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
backend/target/
key: backend-linux-x86-64-gnu-${{ hashFiles('backend/Cargo.toml') }}
restore-keys: backend-linux-x86-64-gnu-
- run: cargo check && cargo clippy && cargo fmt --check
working-directory: backend
- name: Functional test
run: cargo test -- --nocapture
shell: bash
env:
HTTP_PORT: 26814
SMTP_PORT: 33543
working-directory: backend
- run: cargo check && cargo clippy && cargo fmt --check
working-directory: frontend