-
Notifications
You must be signed in to change notification settings - Fork 25
51 lines (41 loc) · 984 Bytes
/
build.yml
File metadata and controls
51 lines (41 loc) · 984 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Build
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-24.04
services:
minio:
image: fclairamb/minio-github-actions:v0.2
ports:
- 9000:9000
strategy:
matrix:
go: ['1.24', '1.25']
include:
- go: '1.25'
lint: true
steps:
- uses: actions/checkout@v6
- name: Setup go
uses: actions/setup-go@v6
with:
go-version: ${{ matrix.go }}
- name: Run golangci-lint
if: matrix.lint
uses: golangci/golangci-lint-action@v9
- name: Build
run: go build -v ./...
- name: Test
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
- name: Upload coverage to Codecov
if: matrix.lint
uses: codecov/codecov-action@v5
with:
files: coverage.txt
build-status:
needs: build
runs-on: ubuntu-latest
steps:
- run: echo 'All good'