⬆️ gha: Bump the github-actions group across 1 directory with 7 updates #19
Workflow file for this run
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
name: Test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
types: [opened, synchronize, reopened] | |
permissions: | |
contents: read | |
jobs: | |
terratest: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | |
with: | |
go-version-file: test/go.mod | |
cache: true | |
- uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2 | |
with: | |
role-to-assume: ${{ vars.CORE_APPLY_ROLE }} | |
aws-region: us-east-1 | |
- run: | | |
aws configure set aws_access_key_id ${{ env.AWS_ACCESS_KEY_ID }} --profile core-profile | |
aws configure set aws_secret_access_key ${{ env.AWS_SECRET_ACCESS_KEY }} --profile core-profile | |
aws configure set aws_session_token ${{ env.AWS_SESSION_TOKEN }} --profile core-profile | |
- uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2 | |
with: | |
role-to-assume: ${{ vars.SANDBOX_APPLY_ROLE }} | |
aws-region: us-east-1 | |
- shell: bash | |
working-directory: test | |
env: | |
TF_VAR_route53_profile: core-profile | |
TF_VAR_route53_zone_id: ${{ secrets.CORE_HOSTED_ZONE_ID }} | |
TF_VAR_route53_zone_name: ${{ secrets.CORE_HOSTED_ZONE_NAME }} | |
run: | | |
go install github.com/jstemmer/go-junit-report@latest | |
go test -timeout 20m -v ./... | tee report.txt | |
go-junit-report -set-exit-code < report.txt > report.xml | |
- uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 # v2.4 | |
with: | |
paths: test/report.xml | |
if: always() |