Skip to content

Commit f1fcc19

Browse files
authored
Merge pull request #1657 from EliahKagan/run-ci/test-fixtures-windows
Run CI on Windows with `GIX_TEST_IGNORE_ARCHIVES=1`
2 parents c5955fc + 319e9d8 commit f1fcc19

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.config/nextest.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[profile.with-xml.junit]
2+
path = "junit.xml"

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,31 @@ jobs:
8080
- name: Check that tracked archives are up to date
8181
run: git diff --exit-code # If this fails, the fix is usually to commit a regenerated archive.
8282

83+
test-fixtures-windows:
84+
runs-on: windows-latest
85+
steps:
86+
- uses: actions/checkout@v4
87+
- uses: dtolnay/rust-toolchain@stable
88+
- uses: Swatinem/rust-cache@v2
89+
- uses: taiki-e/install-action@v2
90+
with:
91+
tool: nextest
92+
- name: "Test (nextest)"
93+
id: nextest
94+
env:
95+
GIX_TEST_IGNORE_ARCHIVES: 1
96+
run: cargo nextest --profile=with-xml run --workspace --no-fail-fast
97+
continue-on-error: true
98+
- name: Check how many tests failed
99+
if: steps.nextest.outcome == 'failure'
100+
env:
101+
# See https://github.com/GitoxideLabs/gitoxide/issues/1358.
102+
EXPECTED_FAILURE_COUNT: 14
103+
run: |
104+
[xml]$junit = Get-Content -Path 'target/nextest/with-xml/junit.xml'
105+
if ($junit.testsuites.errors -ne 0) { exit 1 }
106+
if ($junit.testsuites.failures -gt $env:EXPECTED_FAILURE_COUNT) { exit 1 }
107+
83108
test-32bit:
84109
runs-on: ubuntu-latest
85110
strategy:

0 commit comments

Comments
 (0)