-
-
Notifications
You must be signed in to change notification settings - Fork 14
31 lines (29 loc) · 1.01 KB
/
ci.yml
File metadata and controls
31 lines (29 loc) · 1.01 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
name: Build project
on: [ push, pull_request ]
jobs:
build:
# allow triggering on a push to the repo, or a PR build, not both events
if: github.event_name == 'push' || github.event.pull_request.head.sha != github.sha
name: Build
runs-on: ubuntu-latest
strategy:
fail-fast: false
# perform matrix testing to give us an earlier insight into issues with different versions of supported major versions of Go
matrix:
version:
# versions of Go that this module can still be built with (and therefore are "supported" by this project)
- "1.20"
- "1.21"
- "1.22"
# actively supported versions of Go
- "1.23"
- "1.24"
steps:
- name: Check out source code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up Go
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5
with:
go-version: ${{ matrix.version }}
- name: Test
run: make test