-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (37 loc) · 1.11 KB
/
build.yml
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
40
41
42
43
44
name: build
on:
push:
branches:
- main
pull_request_target:
branches:
- main
jobs:
go-versions:
name: lookup go versions
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.versions.outputs.matrix }}
latest: ${{ steps.versions.outputs.latest }}
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: arnested/go-version-action@b4aefb809febc150eb645efd31b1a3fd50b2068a # v1.1.16
id: versions
build:
runs-on: ${{ matrix.os }}
needs: go-versions
strategy:
matrix:
go-version: ${{ fromJSON(needs.go-versions.outputs.matrix) }}
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: setup go ${{ matrix.go-version }}
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: ${{ matrix.go-version }}
- name: check out code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: install
run: go install -mod=readonly ./cmd/tuplip
- name: test
run: go test -v ./...