forked from nbering/terraform-provider-ansible
-
Notifications
You must be signed in to change notification settings - Fork 9
46 lines (46 loc) · 1.05 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
name: Tests
on:
pull_request:
paths-ignore:
- '*.md'
- 'website/*'
push:
branches:
- main
paths-ignore:
- '*.md'
- 'website/*'
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- {os: ubuntu-latest, go: 1.16}
- {os: windows-latest, go: 1.16}
- {os: macos-latest, go: 1.16}
timeout-minutes: 10
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Setup terraform
uses: hashicorp/setup-terraform@v1
- name: Terraform fmt
run: |
make tf-check
- name: Build
run: |
make
- name: Test
run: |
make test
- uses: actions/upload-artifact@v2
with:
name: terraform-provider-salt-${{ matrix.os }}
path: ${{ github.workspace }}/terraform-provider-salt*