-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (41 loc) · 958 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
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04]
go: ["1.21.11", "1.22.4"]
permissions:
contents: read
steps:
- name: Code checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Setup Go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version: ${{ matrix.go }}
- name: go mod download
env:
CGO_ENABLED: 0
run: |
go mod download
- name: go test
env:
CGO_ENABLED: 0
run: |
go test $(go list ./... | grep -v /e2e)
- name: go test -race
env:
CGO_ENABLED: 1
run: |
go test -race $(go list ./... | grep -v /e2e)