mirror of
https://github.com/narrrl/proton-drive-linux.git
synced 2026-11-03 16:41:26 +01:00
ci: run the simulations on pull requests and lint with --locked
This commit is contained in:
1 parent
6456f503f1
commit
5557aa66d5
2 files changed
+4
-3
No files matched your search
@@ -45,7 +45,7 @@ jobs:
|
|||||||
run: cargo fmt --all -- --check
|
run: cargo fmt --all -- --check
|
||||||
|
|
||||||
- name: Lints
|
- name: Lints
|
||||||
run: cargo clippy --workspace --all-targets -- -D warnings
|
run: cargo clippy --workspace --all-targets --locked -- -D warnings
|
||||||
|
|
||||||
- name: Unit tests
|
- name: Unit tests
|
||||||
run: cargo test --workspace --locked
|
run: cargo test --workspace --locked
|
||||||
@@ -66,8 +66,9 @@ jobs:
|
|||||||
|
|
||||||
# The seeded simulation runs (docs/TESTING.md): real FUSE
|
# The seeded simulation runs (docs/TESTING.md): real FUSE
|
||||||
# daemons against an in-memory Drive, so they need /dev/fuse but no account.
|
# daemons against an in-memory Drive, so they need /dev/fuse but no account.
|
||||||
|
# They run on pull requests too: most data-loss fixes are only exercised
|
||||||
|
# here, and a change that breaks one should not reach main first.
|
||||||
simulation:
|
simulation:
|
||||||
if: github.event_name != 'pull_request'
|
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ Three layers check the client, from fast and offline to slow and against a real
|
|||||||
| Layer | Needs | Runs in CI |
|
| Layer | Needs | Runs in CI |
|
||||||
|---|---|---|
|
|---|---|---|
|
||||||
| [Unit tests](#unit-tests) | Nothing | Every push and pull request |
|
| [Unit tests](#unit-tests) | Nothing | Every push and pull request |
|
||||||
| [Simulation runs](#simulation-runs) | `/dev/fuse` | Every push to `main` |
|
| [Simulation runs](#simulation-runs) | `/dev/fuse` | Every push to `main` and every pull request |
|
||||||
| [Acceptance suite](#acceptance-suite) | Nothing for the reference run; a signed-in account for the rest | The reference run only |
|
| [Acceptance suite](#acceptance-suite) | Nothing for the reference run; a signed-in account for the rest | The reference run only |
|
||||||
|
|
||||||
## Unit tests
|
## Unit tests
|
||||||
|
|||||||
Reference in new issue
Block a user