-
Notifications
You must be signed in to change notification settings - Fork 5
38 lines (35 loc) · 1011 Bytes
/
test.yaml
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
38
on: [push, pull_request]
name: Run Plank Tests
jobs:
test:
strategy:
matrix:
go-version: ["1.19", "1.20", "1.21"] # Add more Golang versions if needed
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Cache Build Dependencies # Speeds up subsquent builds
uses: actions/cache@v1
with:
path: ~/go/pkg/mod
key: go-${{ hashFiles('**/go.sum') }}
- name: Checkout Code
uses: actions/checkout@v2
- name: Test Plank
run: go test -v -race -covermode atomic -coverprofile=profile.cov ./...
- name: Send Coverage
uses: shogo82148/actions-goveralls@v1
with:
parallel: true
flag-name: Go-${{ matrix.go-version }}
path-to-profile: profile.cov
finish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
with:
parallel-finished: true