-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (36 loc) · 899 Bytes
/
ci.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
44
45
46
name: CI/CD
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
permissions:
contents: read
pull-requests: read
checks: write
jobs:
test:
name: Acceptance Tests
strategy:
matrix:
go: [1.21, 1.22]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Download dependencies
run: go mod download
- name: Tidy dependencies
run: go mod tidy
- name: Run static analysis
uses: golangci/golangci-lint-action@v5
with:
version: v1.58
args: --timeout=5m
- name: Run unit tests
run: go test -v ./...