-
Notifications
You must be signed in to change notification settings - Fork 12
31 lines (29 loc) 路 856 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, pull_request]
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
go-version: ["1.19", "1.20"]
runs-on: ${{ matrix.os }}
steps:
- name: Install tools
run: curl --version
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v3
- name: Test
if: matrix.os != 'ubuntu-latest'
run: go test -v ./pkg/...
- name: Test with coverage
if: matrix.os == 'ubuntu-latest'
run: go test -v -coverprofile=coverage.txt -covermode=atomic ./pkg/...
- name: Codecov
if: matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v3
- name: End to end test
run: make e2e