Skip to content

Commit

Permalink
Workflow cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
soumeh01 authored Aug 7, 2023
1 parent 8b1f4cc commit 413e577
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ jobs:
run: |
mkdir -p build
go test -v ./... > build/cbuildtests-${{ matrix.target }}-amd64.txt
- name: Generate JUnit test report
if: always()
run: |
go-junit-report -set-exit-code -in build/cbuildtests-${{ matrix.target }}-amd64.txt -iocopy -out build/cbuild-testreport-${{ matrix.target }}-amd64.xml
- name: Install qemu (for Linux-Arm64)
Expand All @@ -100,9 +104,13 @@ jobs:
qemu-user-binfmt
- name: Unit testing (for Linux-Arm64)
if: ${{ startsWith(runner.os, 'Linux') }}
if: ${{ startsWith(runner.os, 'Linux') && always() }}
run: |
GOOS=linux GOARCH=arm64 go test -v ./... > build/cbuildtests-${{ matrix.target }}-arm64.txt
- name: Generate JUnit test report (for Linux-Arm64)
if: ${{ startsWith(runner.os, 'Linux') && always() }}
run: |
go-junit-report -set-exit-code -in build/cbuildtests-${{ matrix.target }}-arm64.txt -iocopy -out build/cbuild-testreport-${{ matrix.target }}-arm64.xml
- name: Archive unit test results
Expand Down

0 comments on commit 413e577

Please sign in to comment.