-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.19 KB
/
Copy pathci.yml
File metadata and controls
46 lines (42 loc) · 1.19 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
name: CI
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
verify:
name: Verify (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
with:
go-version: '1.27.1'
cache: false
- name: Test real resolver and CLI workflows
run: go test -count=1 ./...
- name: Vet
run: go vet ./...
- name: Build
run: go build ./...
- name: Check reviewed example assets
run: go run . check --goos linux --goarch amd64
- name: Require Go formatting
shell: bash
run: test -z "$(gofmt -l .)"
race:
name: Race detector
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
with:
go-version: '1.27.1'
cache: false
- run: go test -race -count=1 ./...