-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (38 loc) · 1001 Bytes
/
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
45
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:
- name: check out code
uses: actions/[email protected]
- uses: arnested/[email protected]
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/[email protected]
with:
go-version: ${{ matrix.go-version }}
- name: check out code
uses: actions/[email protected]
- name: install
run: go install -mod=readonly ./cmd/tuplip
- name: test
run: go test -v ./...