Skip to content

Commit

Permalink
move to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kmoe committed Jul 8, 2021

Verified

This commit was signed with the committer’s verified signature.
1 parent 42bca00 commit b03dcc0
Showing 2 changed files with 76 additions and 37 deletions.
76 changes: 76 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Tests
on:
pull_request:
branches: [ main ]
paths-ignore:
- 'README.md'
- 'CHANGELOG.md'
- 'website/*'
push:
branches: [ main ]
paths-ignore:
- 'README.md'
- 'CHANGELOG.md'
- 'website/*'
jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 5
steps:

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.16'
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Go fmt
run: |
make fmt
- name: Go vet
run: |
make vet
- name: Build
run: |
go build -v .
# run acceptance tests in a matrix with Terraform core versions
test:
name: Matrix Test
needs: build
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
terraform:
- '0.12.31'
- '0.13.7'
- '0.14.11'
- '0.15.5'
- '1.0.2'
steps:

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.16'
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: TF acceptance tests
timeout-minutes: 10
env:
TF_ACC: "1"
TF_ACC_TERRAFORM_VERSION: ${{ matrix.terraform }}
run: |
bash internal/provider/acceptance.sh
37 changes: 0 additions & 37 deletions .travis.yml

This file was deleted.

0 comments on commit b03dcc0

Please sign in to comment.