forked from opsgenie/opsgenie-go-sdk-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (27 loc) · 757 Bytes
/
Copy pathtest.yml
File metadata and controls
27 lines (27 loc) · 757 Bytes
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
name: test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
ci-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-latest, windows-latest, ubuntu-latest ]
go: [ 1.16, 1.17, 1.18 ]
steps:
- name: Checkout the code
uses: actions/checkout@v2
- name: Set up golang with version ${{ matrix.go }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Run tests
run: go test -v -coverprofile=covprofile ./...
- name: Send coverage
if: ${{ matrix.os == 'macos-latest' && matrix.go == '1.16'}}
uses: shogo82148/actions-goveralls@v1.10.0
with:
path-to-profile: covprofile