Skip to content

Commit

Permalink
ci: use GitHub Actions (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonwalsh authored Jun 23, 2020
1 parent cbba054 commit f5297d0
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 38 deletions.
38 changes: 0 additions & 38 deletions .circleci/config.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
jobs:
lint:
env:
AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}"
AWS_DEFAULT_REGION: "${{ secrets.AWS_DEFAULT_REGION }}"
AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: hashicorp/setup-terraform@v1
with:
terraform_version: 0.12.24
- run: terraform fmt -check -recursive
- run: terraform init
- run: terraform validate
name: Format and validate
"on":
pull_request:
18 changes: 18 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
jobs:
release:
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: cycjimmy/semantic-release-action@v2.1.3
with:
branch: master
extra_plugins: |
@semantic-release/changelog
@semantic-release/git@8.0.0
name: Create release
"on":
push:
branches:
- master
26 changes: 26 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
jobs:
test:
env:
AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}"
AWS_DEFAULT_REGION: "${{ secrets.AWS_DEFAULT_REGION }}"
AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: ^1.14.2
- uses: actions/cache@v1
with:
key: "${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}"
path: ~/go/pkg/mod
restore-keys: |
${{ runner.os }}-go-
- uses: hashicorp/setup-terraform@v1
with:
terraform_version: 0.12.24
terraform_wrapper: false
- run: go test -count=1 -timeout=45m ./...
name: Run Terratest
"on":
pull_request:

0 comments on commit f5297d0

Please sign in to comment.