-
-
Notifications
You must be signed in to change notification settings - Fork 11
37 lines (37 loc) · 976 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: ci
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
ci:
name: go${{ matrix.go_version }}/${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
go_version: ['1.22']
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: Use Go ${{ matrix.go_version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go_version }}
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: run coverage
run: |
bash hack/coverage
- name: Install and check
run: |
go build -mod=vendor
bash -c "./wwhrd check"
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
if: matrix.go_version == '1.22' && matrix.os == 'ubuntu-latest'
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./.cover/cover.out
fail_ci_if_error: true