-
-
Notifications
You must be signed in to change notification settings - Fork 10
45 lines (42 loc) · 932 Bytes
/
test.yml
File metadata and controls
45 lines (42 loc) · 932 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Test
on:
push:
branches:
- master
paths:
- "**/*.go"
- "go.mod"
- "go.sum"
- ".github/workflows/test.yml"
pull_request:
types: [opened, synchronize, reopened]
branches:
- master
paths:
- "**/*.go"
- "go.mod"
- "go.sum"
- ".github/workflows/test.yml"
jobs:
test:
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
# go-version: ^1.17.1
go-version: ^1.24.5
- name: Checkout code
uses: actions/checkout@v4
- name: Check Go modules
run: |
# go mod tidy -compat=1.17
go mod tidy
git diff --exit-code go.mod go.sum
go mod verify
- name: Test
run: make test