feat: Add containerInsights log group #9
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
--- | |
############### | |
## Run tests ## | |
############### | |
# | |
# Documentation: | |
# https://help.github.com/en/articles/workflow-syntax-for-github-actions | |
# | |
name: Test | |
on: | |
pull_request: | |
push: | |
branches: [ main ] | |
########################## | |
# Prevent duplicate jobs # | |
########################## | |
concurrency: | |
group: ${{ github.repository }} | |
cancel-in-progress: false | |
permissions: | |
id-token: write | |
contents: read | |
############### | |
# Run the job # | |
############### | |
jobs: | |
terratest: | |
name: Terratest | |
runs-on: ubuntu-latest | |
steps: | |
############################ | |
# Checkout the source code # | |
############################ | |
- name: Checkout | |
uses: actions/checkout@v3 | |
############################# | |
# Configure AWS credentials # | |
############################# | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
role-to-assume: arn:aws:iam::${{ vars.AWS_TESTING_ACCOUNT_ID }}:role/${{ vars.AWS_TESTING_ROLE }} | |
aws-region: ${{ vars.AWS_TESTING_REGION }} | |
mask-aws-account-id: false | |
################ | |
# Setup Golang # | |
################ | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: 'go.mod' | |
############# | |
# Run tests # | |
############# | |
- name: Run Tests | |
timeout-minutes: 30 | |
working-directory: test | |
run: go test -v |