File tree Expand file tree Collapse file tree 3 files changed +22
-19
lines changed
Expand file tree Collapse file tree 3 files changed +22
-19
lines changed Original file line number Diff line number Diff line change 6868 run : just compose-down-and-wipe
6969
7070 test :
71- env :
72- SQLX_OFFLINE : 1
7371 runs-on : ubuntu-latest
7472 steps :
7573 - uses : actions/checkout@v5
8280 with :
8381 prefix-key : ${{ env.RUST_CACHE_KEY }}
8482
85- - name : Build
86- run : cargo build --workspace --locked
87-
88- - name : Launch postgres and min.io
89- run : just ensure_db_and_s3_are_running
90-
91- - name : run workspace tests
92- run : |
93- cargo test --workspace --locked --no-fail-fast
94-
95- - name : run slow tests
96- env :
97- DOCSRS_INCLUDE_DEFAULT_TARGETS : true
98- run : |
99- cargo test --locked -- --ignored --test-threads=1
83+ - name : run tests
84+ run : just run-tests run-builder-tests
10085
10186 - name : shut down test environment
10287 if : ${{ always() }}
@@ -122,8 +107,8 @@ jobs:
122107 if : ${{ always() }}
123108 run : just compose-down-and-wipe
124109
125- clippy :
126- name : Clippy
110+ rslint :
111+ name : rust linters
127112 runs-on : ubuntu-latest
128113
129114 steps :
Original file line number Diff line number Diff line change 1414 on production. It might have started failing just after the config/context
1515 rewrite, which is not deployed yet.
1616 [ #2937 ] ( https://github.com/rust-lang/docs.rs/pull/2937 )
17+ - unsure if the prefix mount should also be a docker volume, for performance.
18+ Not sure how often we actually have to look at the contents?
1719
1820 ## docker image
1921
Original file line number Diff line number Diff line change @@ -50,3 +50,19 @@ run-gui-tests: ensure_db_and_s3_are_running cli-db-migrate compose-up-web
5050 just cli-build-add-essential-files
5151
5252 just _cli gui_tests
53+
54+ # build binaries for all tests
55+ build-tests :
56+ cargo test --no-run --workspace --locked
57+
58+
59+ run-tests : ensure_db_and_s3_are_running build-tests
60+ cargo test --workspace --locked --no-fail-fast
61+
62+ run-builder-tests : ensure_db_and_s3_are_running build-tests
63+ #!/ bin/ bash
64+ set -euo pipefail
65+
66+ export DOCSRS_INCLUDE_DEFAULT_TARGETS=true
67+
68+ cargo test --locked -- --ignored --test-threads=1
You can’t perform that action at this time.
0 commit comments