Skip to content

Commit 257f605

Browse files
authored
Merge pull request #83 from hashicorp/github-actions
move to GitHub Actions
2 parents 6166270 + f35170d commit 257f605

File tree

2 files changed

+75
-39
lines changed

2 files changed

+75
-39
lines changed

.github/workflows/test.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: Tests
2+
on:
3+
pull_request:
4+
branches: [ main ]
5+
paths-ignore:
6+
- 'README.md'
7+
- 'CHANGELOG.md'
8+
- 'website/*'
9+
push:
10+
branches: [ main ]
11+
paths-ignore:
12+
- 'README.md'
13+
- 'CHANGELOG.md'
14+
- 'website/*'
15+
jobs:
16+
build:
17+
name: Build
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 5
20+
steps:
21+
22+
- name: Set up Go
23+
uses: actions/[email protected]
24+
with:
25+
go-version: '1.15'
26+
id: go
27+
28+
- name: Check out code into the Go module directory
29+
uses: actions/[email protected]
30+
31+
- name: Go fmt
32+
run: |
33+
make fmt
34+
35+
- name: Go vet
36+
run: |
37+
make vet
38+
39+
- name: Build
40+
run: |
41+
go build -v .
42+
43+
44+
# run acceptance tests in a matrix with Terraform core versions
45+
test:
46+
name: Matrix Test
47+
needs: build
48+
runs-on: ${{ matrix.os }}
49+
timeout-minutes: 15
50+
strategy:
51+
fail-fast: false
52+
matrix:
53+
os: [macos-latest, windows-latest, ubuntu-latest]
54+
terraform:
55+
- '0.12.30'
56+
- '0.13.6'
57+
- '0.14.5'
58+
steps:
59+
60+
- name: Set up Go
61+
uses: actions/[email protected]
62+
with:
63+
go-version: '1.15'
64+
id: go
65+
66+
- name: Check out code into the Go module directory
67+
uses: actions/[email protected]
68+
69+
- name: TF acceptance tests
70+
timeout-minutes: 10
71+
env:
72+
TF_ACC: "1"
73+
TF_ACC_TERRAFORM_VERSION: ${{ matrix.terraform }}
74+
run: |
75+
go test -v -cover ./internal/provider/

.travis.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)