-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 908 Bytes
/
ci.yaml
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: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
tests:
name: Test
permissions:
contents: read
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04]
go: ["1.21.10", "1.22.3"]
steps:
- name: Setup Go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version: ${{ matrix.go }}
- name: Code checkout
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- name: go mod download
env:
CGO_ENABLED: 0
run: |
go mod download
- name: go test
env:
CGO_ENABLED: 0
run: |
go test ./...
- name: go test -race
env:
CGO_ENABLED: 1
run: |
go test -race ./...