Updates #137
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: 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 |