Try to speed up builds.
This commit is contained in:
parent
b3dd711ea1
commit
03dc329f1f
1 changed files with 10 additions and 4 deletions
|
|
@ -6,6 +6,12 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
|
||||||
|
env:
|
||||||
|
# Should speed up builds.
|
||||||
|
CARGO_INCREMENTAL: 0
|
||||||
|
# Should reduce the size of ./target to improve cache load/store.
|
||||||
|
CARGO_PROFILE_TEST_DEBUG: 0
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-backend:
|
check-backend:
|
||||||
name: Backend
|
name: Backend
|
||||||
|
|
@ -33,19 +39,19 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
# hurl needs libxml needs libclang
|
# hurl needs libxml needs libclang
|
||||||
apt update && apt install -y clang
|
apt update && apt install -y clang
|
||||||
cargo build --tests
|
cargo build --tests --locked
|
||||||
working-directory: backend
|
working-directory: backend
|
||||||
- name: "Lint"
|
- name: "Lint"
|
||||||
run: |
|
run: |
|
||||||
rustup component add clippy
|
rustup component add clippy
|
||||||
cargo clippy
|
cargo clippy --locked
|
||||||
working-directory: backend
|
working-directory: backend
|
||||||
- name: "Unit Tests"
|
- name: "Unit Tests"
|
||||||
run: |
|
run: |
|
||||||
cargo test -- --skip api
|
cargo test --locked -- --skip api
|
||||||
working-directory: backend
|
working-directory: backend
|
||||||
- name: "Integration Tests"
|
- name: "Integration Tests"
|
||||||
run: cargo test --test api
|
run: cargo test --locked --test api
|
||||||
working-directory: backend
|
working-directory: backend
|
||||||
|
|
||||||
check-frontend:
|
check-frontend:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue