Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
richgreen-moj committed Jun 21, 2024
1 parent 9f968cc commit 5990cce
Showing 1 changed file with 27 additions and 24 deletions.
51 changes: 27 additions & 24 deletions .github/workflows/go-terratest.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,36 @@
on:
pull_request:
types: [opened, edited, reopened, synchronize]
types: [opened, edited, reopened, synchronize]
push:
branches:
- feature/add-unit-tests
permissions: {}
env:

permissions: {}

env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
TF_IN_AUTOMATION: true
jobs:

jobs:
go-tests:
permissions:
contents: read
actions: write
name: Run Go Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version: 1.18
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3.1.1
with:
terraform_version: ~1.3
terraform_wrapper: false
- name: Download Go Modules
working-directory: test
run: go mod download
- name: Run Go Tests
working-directory: test
run: go test -v
permissions:
contents: read
actions: write
name: Run Go Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version: 1.18
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3.1.1
with:
terraform_version: ~1.3
terraform_wrapper: false
- name: Download Go Modules
working-directory: test
run: go mod download
- name: Run Go Tests
working-directory: test
run: go test -v

0 comments on commit 5990cce

Please sign in to comment.