generated from hadenlabs/terraform-module-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (30 loc) · 697 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
name: test
on:
push:
branches:
- develop
pull_request:
branches:
- develop
env:
IMAGE_NAME: 'hadenlabs/terraform-aws-iam-system-user'
jobs:
test:
name: test
strategy:
matrix:
go-version: [1.15.x, 1.16.x]
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: check out a copy of the repo
uses: actions/checkout@v2
- name: build the docker image
run: |
docker build . --tag ${{ env.IMAGE_NAME }}:latest
- name: install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: test
run: go test ./...