-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 1019 Bytes
/
module-test.yml
File metadata and controls
33 lines (33 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# 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/setup-terraform@v4.0.0
with:
terraform_version: 1.14.6
- name: Set up Go
uses: actions/setup-go@v6.3.0
with:
go-version: "1.25.6"
- name: Checkout code
uses: actions/checkout@v6.0.2
- 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