Upgraded go.mod #57
This file contains hidden or 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
| # Red Instance Module Testing Workflow | |
| name: Testing Red Instance Module | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install Terraform | |
| uses: hashicorp/[email protected] | |
| with: | |
| terraform_version: 1.14.3 | |
| - name: Set up Go | |
| uses: actions/[email protected] | |
| with: | |
| go-version: "1.25.6" | |
| - name: Checkout code | |
| uses: actions/[email protected] | |
| - name: Setup Dependencies | |
| working-directory: tests/ | |
| run: go get -v -t -d && go mod tidy | |
| - name: Test | |
| env: | |
| AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }} | |
| working-directory: tests/ | |
| run: go test -timeout 30m red_instance_test.go -v |