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 Feb 23, 2021
1 parent d77eff1 commit 29b19fd
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 37 deletions.
74 changes: 74 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
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/[email protected]
with:
go-version: '1.15'
id: go

- name: Check out code into the Go module directory
uses: actions/[email protected]

- 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.30'
- '0.13.6'
- '0.14.5'
steps:

- name: Set up Go
uses: actions/[email protected]
with:
go-version: '1.15'
id: go

- name: Check out code into the Go module directory
uses: actions/[email protected]

- 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 29b19fd

Please sign in to comment.