-
-
Notifications
You must be signed in to change notification settings - Fork 5
58 lines (46 loc) · 1.06 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: test
on:
workflow_run:
workflows:
- lint-code
types:
- completed
push:
branches:
- develop
- main
tags:
- '[0-9]+.[0-9]+.[0-9]+'
# https://semver.org/ proper release tags, more or less
- 'v[0-9]+.[0-9]+.[0-9]+'
# prerelease tags, more or less
- 'v[0-9]+.[0-9]+.[0-9]+-*'
pull_request:
branches:
- develop
- main
env:
IMAGE_NAME: 'hadenlabs/terraform-aws-openvpn'
jobs:
test:
name: test
strategy:
matrix:
go-version: [1.15.x, 1.16.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: check out a copy of the repo
uses: actions/checkout@v2
- name: Install Task
uses: arduino/setup-task@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Check Dependences
run: task go:check:go
- name: Test go
run: task go:test