-
Notifications
You must be signed in to change notification settings - Fork 24
39 lines (38 loc) · 1010 Bytes
/
test.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
name: Test
on:
pull_request:
branches:
- master
jobs:
test:
name: Docker build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: "0"
- name: Build image
run: make docker
env:
VERSION: test
- name: Run image
run: docker run --rm docker.io/vshn/signalilo:test --version
test_go_get:
# Only run `go get` tests on PRs with source branch in
# github.com/vshn/signalilo, as go get will fail for PRs whose source
# branch is in a fork.
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.19', '1.20' ]
name: Go install with Go ${{ matrix.go }}
steps:
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- run: go install -v github.com/vshn/signalilo@${{ github.head_ref }}
env:
GO111MODULE: on
GOPROXY: direct
- run: signalilo --version