-
Notifications
You must be signed in to change notification settings - Fork 66
36 lines (30 loc) · 809 Bytes
/
Copy pathtest.yml
File metadata and controls
36 lines (30 loc) · 809 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
name: Test
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
build:
strategy:
fail-fast: false
matrix:
go-version:
- 1.25.x
- 1.26.x
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Set up Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: ${{ matrix.go-version }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
# Run basic tests, we just want to make sure there is parity on Linux and
# macOS, and back to the oldest version of Go this library supports.
- name: Run tests
run: go test ./...