Skip to content

Commit

Permalink
Conditionally invoke windows or linux unit-test script
Browse files Browse the repository at this point in the history
  • Loading branch information
rkoster committed Nov 12, 2024
1 parent b91ed87 commit d56c274
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
- uses: golangci/golangci-lint-action@v6
- name: Unit Tests
- name: Unit Tests (Windows)
if: runner.os == 'Windows'
run: ./bin/test-unit.ps1
- name: Unit Tests (Linux)
if: runner.os == 'Linux'
run: ./bin/test-unit
13 changes: 13 additions & 0 deletions bin/test-unit.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
trap {
write-error $_
exit 1
}

go.exe version

go.exe run github.com/onsi/ginkgo/v2/ginkgo -r -keep-going --skip-package="vendor"
if ($LastExitCode -ne 0)
{
Write-Error $_
exit 1
}

0 comments on commit d56c274

Please sign in to comment.