Skip to content

Instantly share code, notes, and snippets.

@bbriggs
Created September 14, 2020 01:26
Show Gist options
  • Save bbriggs/d04a32e0def6aaee40e18c2e9afb779f to your computer and use it in GitHub Desktop.
Save bbriggs/d04a32e0def6aaee40e18c2e9afb779f to your computer and use it in GitHub Desktop.
on: [pull_request]
name: Test
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.14.x
- name: Checkout code
uses: actions/checkout@v2
- name: Install tfenv
run: git clone https://github.com/tfutils/tfenv.git ~/.tfenv
- name: Add tfenv to system path
run: echo "::add-path::~/.tfenv/bin/"
- name: Install and use terraform 0.12.29
run: tfenv install 0.12.29
- name: Test
run: go test -timeout=30m ./...
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
working-directory: ./test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment