-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (58 loc) · 1.64 KB
/
test.yml
File metadata and controls
58 lines (58 loc) · 1.64 KB
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
49
50
51
52
53
54
55
56
57
58
---
name: Test
"on":
push:
branches:
- main
- dev
pull_request:
branches:
- main
jobs:
test:
name: Test on Go ${{ matrix.go }}
permissions:
checks: write
contents: write
pull-requests: read
statuses: write
runs-on: ubuntu-24.04-arm
strategy:
matrix:
go: ["1.25", "1.24", "1.23"]
include:
- go: "1.25"
go-version: "1.25.0"
update-meta: true
- go: "1.24"
go-version: "1.24.6"
- go: "1.23"
go-version: "1.23.12"
env:
GOTOOLCHAIN: local
steps:
- name: ✔ Check out
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: 🐹 Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version: ${{ matrix.go-version }}
- name: 🧸 golangci-lint
uses: golangci/golangci-lint-action@0a35821d5c230e903fcfe077583637dea1b27b47 # v9.0.0
with:
version: v2.4.0
- name: 🔨 Test
run: |
go test -coverprofile=cover.out ./...
- name: 🧑🏻💻 codecov
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
if: ${{ matrix.update-meta }}
with:
files: ./cover.out
token: ${{ secrets.CODECOV_TOKEN }}
- name: 🛜 Dependencies
uses: actions/go-dependency-submission@f35d5c9af13ce9cc32f7930b171e315e878f6921 # v2.0.3
if: ${{ matrix.update-meta }}
with:
go-mod-path: go.mod
go-build-target: .