-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cbba054
commit f5297d0
Showing
4 changed files
with
62 additions
and
38 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |