-
Notifications
You must be signed in to change notification settings - Fork 28
49 lines (42 loc) · 1.29 KB
/
check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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