Skip to content

Commit f5297d0

Browse files
authored
ci: use GitHub Actions (#35)
1 parent cbba054 commit f5297d0

File tree

4 files changed

+62
-38
lines changed

4 files changed

+62
-38
lines changed

.circleci/config.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/lint.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
jobs:
2+
lint:
3+
env:
4+
AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}"
5+
AWS_DEFAULT_REGION: "${{ secrets.AWS_DEFAULT_REGION }}"
6+
AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v1
10+
- uses: hashicorp/setup-terraform@v1
11+
with:
12+
terraform_version: 0.12.24
13+
- run: terraform fmt -check -recursive
14+
- run: terraform init
15+
- run: terraform validate
16+
name: Format and validate
17+
"on":
18+
pull_request:

.github/workflows/release.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
jobs:
2+
release:
3+
env:
4+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v1
8+
- uses: cycjimmy/semantic-release-action@v2.1.3
9+
with:
10+
branch: master
11+
extra_plugins: |
12+
@semantic-release/changelog
13+
@semantic-release/git@8.0.0
14+
name: Create release
15+
"on":
16+
push:
17+
branches:
18+
- master

.github/workflows/test.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
jobs:
2+
test:
3+
env:
4+
AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}"
5+
AWS_DEFAULT_REGION: "${{ secrets.AWS_DEFAULT_REGION }}"
6+
AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-go@v2
11+
with:
12+
go-version: ^1.14.2
13+
- uses: actions/cache@v1
14+
with:
15+
key: "${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}"
16+
path: ~/go/pkg/mod
17+
restore-keys: |
18+
${{ runner.os }}-go-
19+
- uses: hashicorp/setup-terraform@v1
20+
with:
21+
terraform_version: 0.12.24
22+
terraform_wrapper: false
23+
- run: go test -count=1 -timeout=45m ./...
24+
name: Run Terratest
25+
"on":
26+
pull_request:

0 commit comments

Comments
 (0)