-
Notifications
You must be signed in to change notification settings - Fork 10
34 lines (30 loc) · 993 Bytes
/
test.yml
File metadata and controls
34 lines (30 loc) · 993 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
name: test
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on: [push, pull_request]
jobs:
test:
name: ${{ matrix.platform }} (${{ matrix.go-version || 'oldest' }})
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
go-version:
- "" # do not specify go-version to fall back on go-version-file (use go.mod); see https://github.com/actions/setup-go/issues/450#issuecomment-3620402646
- "oldstable"
- "stable"
platform: [ubuntu-latest,windows-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Install Go ${{ matrix.go-version }}
uses: actions/setup-go@v6
with:
go-version: ${{ matrix.go-version }}
go-version-file: "go.mod" # used when go-version is not specified.
- name: Test
run: go test -v ./...