Skip to content

Commit

Permalink
Merge pull request #1657 from EliahKagan/run-ci/test-fixtures-windows
Browse files Browse the repository at this point in the history
Run CI on Windows with `GIX_TEST_IGNORE_ARCHIVES=1`
  • Loading branch information
Byron authored Nov 7, 2024
2 parents c5955fc + 319e9d8 commit f1fcc19
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[profile.with-xml.junit]
path = "junit.xml"
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,31 @@ jobs:
- name: Check that tracked archives are up to date
run: git diff --exit-code # If this fails, the fix is usually to commit a regenerated archive.

test-fixtures-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@v2
with:
tool: nextest
- name: "Test (nextest)"
id: nextest
env:
GIX_TEST_IGNORE_ARCHIVES: 1
run: cargo nextest --profile=with-xml run --workspace --no-fail-fast
continue-on-error: true
- name: Check how many tests failed
if: steps.nextest.outcome == 'failure'
env:
# See https://github.com/GitoxideLabs/gitoxide/issues/1358.
EXPECTED_FAILURE_COUNT: 14
run: |
[xml]$junit = Get-Content -Path 'target/nextest/with-xml/junit.xml'
if ($junit.testsuites.errors -ne 0) { exit 1 }
if ($junit.testsuites.failures -gt $env:EXPECTED_FAILURE_COUNT) { exit 1 }
test-32bit:
runs-on: ubuntu-latest
strategy:
Expand Down

0 comments on commit f1fcc19

Please sign in to comment.