Skip to content

Commit

Permalink
Setup CI with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
minamijoyo committed Aug 20, 2020
1 parent 00cabc5 commit 55f9f1b
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: test
on:
push:
branches:
- master
- setup-actions
pull_request:
branches:
- master

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
terraform: [0.13.0, 0.12.29]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '1.15.0'
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: test
run: make check
- name: testacc
run: docker-compose build
env:
TERRAFORM_VERSION: ${{ matrix.terraform }}
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
build:
context: .
args:
TERRAFORM_VERSION: 0.12.28
TERRAFORM_VERSION: ${TERRAFORM_VERSION:-latest}
volumes:
- ".:/work"
environment:
Expand Down

0 comments on commit 55f9f1b

Please sign in to comment.