-
Notifications
You must be signed in to change notification settings - Fork 5
55 lines (46 loc) · 1.19 KB
/
Copy pathgo.yaml
File metadata and controls
55 lines (46 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
47
48
49
50
51
52
53
54
55
name: go
on:
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
name: "Lint"
steps:
- name: "Checkout Repository"
uses: actions/checkout@v7
- name: "Setup Go"
uses: actions/setup-go@v6
with:
go-version: "oldstable"
- name: "Lint"
continue-on-error: false
uses: golangci/golangci-lint-action@v9
with:
# https://golangci-lint.run/usage/configuration/#command-line-options
args: --timeout=5m --verbose
cache-invalidation-interval: 30
build:
runs-on: ubuntu-latest
needs: lint
strategy:
matrix:
go: [ '1.25', '1.26' ]
mongo: [ '7.0', '8.0' ]
name: Go ${{ matrix.go }} with MongoDB ${{ matrix.mongo }}
steps:
- name: "Checkout Repository"
uses: actions/checkout@v7
- name: "Start MongoDB"
uses: supercharge/mongodb-github-action@1.12.1
with:
mongodb-version: ${{ matrix.mongo }}
- name: "Setup Go"
uses: actions/setup-go@v6
with:
go-version: ${{ matrix.go }}
- name: "Go Test"
run: |
go version
go test -v ./...