Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 18 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,24 +159,25 @@ jobs:
MSBuild ./VS17/ReadStat.sln /p:Configuration=Release /p:Platform=x64 /nologo

- name: Test
id: make-check
shell: pwsh
env:
PATH: C:\vcpkg\installed\x64-windows\bin;${{ env.PATH }}
run: |
./VS17/x64/Release/ReadStat_App.exe
./VS17/x64/Release/ReadStat_Test_double_decimals.exe
./VS17/x64/Release/ReadStat_Test_dta_days.exe
./VS17/x64/Release/ReadStat_Test_sav_date.exe
./VS17/x64/Release/ReadStat_Test_readstat.exe
continue-on-error: true
- name: Upload test log
if: steps.make-check.outcome == 'failure'
uses: actions/upload-artifact@v4
with:
name: test-suite-log-windows
path: test-suite.log
retention-days: 5
- name: Fail if tests failed
if: steps.make-check.outcome == 'failure'
run: exit 1
# pwsh only fails the step on the last command's exit code, so
# check each executable explicitly
$failed = @()
./VS17/x64/Release/ReadStat_App.exe --version
if ($LASTEXITCODE -ne 0) { $failed += "ReadStat_App" }
$tests = @("double_decimals", "dta_days", "sav_date", "readstat")
foreach ($test in $tests) {
Write-Host "Running $test..."
& "./VS17/x64/Release/ReadStat_Test_$test.exe"
if ($LASTEXITCODE -ne 0) {
Write-Host "::error::$test exited with code $LASTEXITCODE"
$failed += $test
}
}
if ($failed.Count -gt 0) {
Write-Host "Failed: $($failed -join ', ')"
exit 1
}
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[![GitHub CI build status](https://github.com/WizardMac/ReadStat/workflows/build/badge.svg)](https://github.com/WizardMac/ReadStat/actions)
[![Appveyor build status](https://ci.appveyor.com/api/projects/status/76ctatpy3grlrd9x/branch/master?svg=true)](https://ci.appveyor.com/project/evanmiller/readstat/branch/master)
[![codecov](https://codecov.io/gh/WizardMac/ReadStat/branch/master/graph/badge.svg)](https://codecov.io/gh/WizardMac/ReadStat)
[![Fuzzing Status](https://oss-fuzz-build-logs.storage.googleapis.com/badges/readstat.svg)](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:readstat)

Expand Down
105 changes: 0 additions & 105 deletions appveyor.yml

This file was deleted.

Loading