-
Notifications
You must be signed in to change notification settings - Fork 7
48 lines (39 loc) · 847 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
name: test
on:
push:
branches:
- main
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
pull_request:
branches:
- main
jobs:
test:
strategy:
matrix:
os:
- ubuntu-22.04
- macos-14
- windows-2022
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: '1.22'
- name: Lint
if: ${{ matrix.os == 'ubuntu-22.04' }}
run: make lint
- name: Test
run: make test
- name: Publish coverage to coveralls.io
uses: shogo82148/actions-goveralls@v1
if: ${{ matrix.os == 'ubuntu-22.04' }}
with:
path-to-profile: coverage.out
- name: Build
run: make build