-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (32 loc) · 828 Bytes
/
ci.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
32
33
34
35
36
37
name: Test
on:
push:
paths-ignore:
- 'rapidyenc/**'
- 'src/**'
pull_request:
paths-ignore:
- 'rapidyenc/**'
- 'src/**'
jobs:
test:
name: Test ${{ matrix.os }} go/${{ matrix.go }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go: [1.21, 1.22]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Run tests
run: go run gotest.tools/gotestsum@latest --junitfile unit-tests.xml --format pkgname -- ./...
- name: Test Summary
uses: test-summary/action@v2
with:
paths: "unit-tests.xml"
if: always()