-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 953 Bytes
/
main.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
name: Test
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
test:
name: Tests on ${{ matrix.go-version }} ${{ matrix.platform }}
strategy:
matrix:
go-version: ['1.22', '1.23']
platform: [ubuntu-latest, macos-14]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- run: make test
# - uses: codecov/codecov-action@v1
# env:
# OS: ${{ matrix.platform }}
# GO: ${{ matrix.go-version }}
# with:
# files: ./c.out
# env_vars: OS,GO
# - run: echo "GOPATH=$(go env GOPATH)" >>"$GITHUB_ENV"
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version-file: ./go.mod
check-latest: true
- run: make lint