-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 1014 Bytes
/
ci.yml
File metadata and controls
33 lines (32 loc) · 1014 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
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.25' ]
name: "Test [ Go ${{ matrix.go }} ]"
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Cache Go modules
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install Go stable version
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: ${{ matrix.go }}
check-latest: true
- name: Test with coverage
run: go test -v -race -coverprofile=coverage.out ./...
- name: Check go mod tidy
run: |
go mod tidy
git diff --exit-code go.mod go.sum