-
Notifications
You must be signed in to change notification settings - Fork 15
43 lines (35 loc) · 873 Bytes
/
go.yml
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
name: 'go-test-build'
on:
push:
branches: [ master, release.* ]
tags:
- v1.*
paths-ignore:
- '**/README.md'
- '.github/workflows/weekly-fuzz.yml'
- 'docs/**'
pull_request:
jobs:
build:
name: 'go test & build'
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v5.0.0
with:
go-version: '1.22'
id: go
- run: go version
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Source-Code formatting
run: test -z $(go fmt ./...)
- name: Source-Code analysis
run: go list ./... | grep -v 'fuzz\/.*' | xargs go vet
- name: Test
run: go test -v -timeout 300s -race ./...
- name: Build binary
run: |
go build -v -o couper .
./couper version