Skip to content

Commit 4d293cb

Browse files
authored
Merge pull request #1674 from EliahKagan/run-ci/journey
Split `test` CI job into `test` and `test-journey`
2 parents eedebe7 + 711c2f5 commit 4d293cb

File tree

3 files changed

+24
-7
lines changed

3 files changed

+24
-7
lines changed

.github/workflows/ci.yml

+15-3
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
- uses: dtolnay/rust-toolchain@stable
6666
- uses: Swatinem/rust-cache@v2
6767
- name: Setup dependencies
68-
run: sudo apt-get install -y --no-install-recommends liblzma-dev tree
68+
run: sudo apt-get install -y --no-install-recommends liblzma-dev
6969
- uses: extractions/setup-just@v2
7070
- uses: taiki-e/install-action@v2
7171
with:
@@ -75,6 +75,17 @@ jobs:
7575
GIX_TEST_IGNORE_ARCHIVES: '1'
7676
run: just ci-test
7777

78+
test-journey:
79+
runs-on: ubuntu-latest
80+
81+
steps:
82+
- uses: actions/checkout@v4
83+
- uses: dtolnay/rust-toolchain@stable
84+
- uses: Swatinem/rust-cache@v2
85+
- uses: extractions/setup-just@v2
86+
- name: Run journey tests
87+
run: just ci-journey-tests
88+
7889
test-fast:
7990
strategy:
8091
matrix:
@@ -91,8 +102,8 @@ jobs:
91102
- uses: Swatinem/rust-cache@v2
92103
- name: Setup dependencies (macos)
93104
if: startsWith(matrix.os, 'macos')
94-
run: brew install tree openssl gnu-sed
95-
- name: "cargo check default features"
105+
run: brew install openssl gnu-sed
106+
- name: cargo check default features
96107
if: startsWith(matrix.os, 'windows')
97108
run: cargo check --workspace --bins --examples
98109
- uses: taiki-e/install-action@v2
@@ -342,6 +353,7 @@ jobs:
342353
needs:
343354
- pure-rust-build
344355
- test
356+
- test-journey
345357
- test-fast
346358
- test-32bit
347359
- lint

justfile

+8-3
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,15 @@ alias nt := nextest
1212
# run all tests, clippy, including journey tests, try building docs
1313
test: clippy check doc unit-tests journey-tests-pure journey-tests-small journey-tests-async journey-tests
1414

15-
# run all tests, without clippy, including journey tests, try building docs (and clear target on CI)
16-
ci-test: check doc unit-tests clear-target ci-journey-tests
15+
# run all tests, without clippy, including journey tests, try building docs (and clear target)
16+
ci-test-full: check doc unit-tests clear-target ci-journey-tests
1717

18-
# run all journey tests, but assure these are running after `cargo clean` (and workaround a just-issue of deduplicating targets)
18+
# run all tests, without clippy, and try building docs (without clearing the target)
19+
ci-test: check doc unit-tests
20+
21+
# run all journey tests
22+
# these should be run in a fresh clone or after `cargo clean`
23+
# (and workaround a just-issue of deduplicating targets)
1924
ci-journey-tests: journey-tests-pure journey-tests-small journey-tests-async journey-tests
2025

2126
clear-target:

tests/journey/ein.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ title "Porcelain ${kind}"
2828
)
2929
)
3030
snapshot="$snapshot/porcelain"
31-
(with_program tree
31+
(with_program find
3232
(when "using the 'tool' subcommand"
3333
title "ein tool"
3434
(with "a repo with a tiny commit history"

0 commit comments

Comments
 (0)