-
Notifications
You must be signed in to change notification settings - Fork 185
39 lines (34 loc) · 819 Bytes
/
test.yml
File metadata and controls
39 lines (34 loc) · 819 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
name: Test
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
# Test currently supported Go releases.
#
# See: https://go.dev/doc/devel/release#policy
go-version:
- stable
- oldstable
steps:
- uses: actions/checkout@v4
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
# Caching isn't really needed without any dependencies,
# and without a go.sum this action will emit warnings.
#
# See: https://github.com/actions/setup-go/issues/476
cache: false
- name: Test
run: go test -v ./...