-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (31 loc) · 997 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Test
on:
push:
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
jobs:
ginkgo:
name: ginkgo
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '>=1.20.4'
cache: false
- run: go install github.com/onsi/ginkgo/v2/ginkgo@latest && ginkgo run -r --race --junit-report test-report.xml
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: always() # always run even if the previous step fails
with:
report_paths: 'test-report.xml'
check_name: 'Ginkgo Test Report (OS: ${{ matrix.os }})'
- run: ginkgo run -r --coverprofile=coverage.txt --covermode=atomic
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4