-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (32 loc) · 932 Bytes
/
test.yaml
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
name: test
on: [push, pull_request]
permissions:
contents: read
jobs:
mod:
runs-on: ubuntu-latest
name: Check modules
steps:
- uses: actions/setup-go@v5
with:
go-version: 'oldstable'
- uses: actions/checkout@v4
- run: go mod tidy && git diff --exit-code go.mod go.sum
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
version: [ 'oldstable', 'stable' ]
name: Go ${{ matrix.version }}
steps:
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.version }}
- uses: actions/checkout@v4
- name: Install Ginkgo
run: |
go install github.com/onsi/ginkgo/v2/ginkgo
go get github.com/onsi/gomega/...
- run: go vet ./...
- run: ginkgo --github-output -r -randomize-all -randomize-suites -race -trace -procs=2 -poll-progress-after=10s -poll-progress-interval=10s