-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (42 loc) · 1.12 KB
/
ci-infra-service.yml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: CI Infra Service Checks
on:
# !! Uncomment to trigger automated infra tests once dev environment is set up
# push:
# branches:
# - main
# paths:
# - infra/*/service/**
# - infra/modules/**
# - infra/test/**
# - .github/workflows/ci-infra-service.yml
# pull_request:
# paths:
# - infra/*/service/**
# - infra/modules/**
# - infra/test/**
# - .github/workflows/ci-infra-service.yml
workflow_dispatch:
jobs:
infra-test-e2e:
name: Test service
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.8.3
terraform_wrapper: false
- uses: actions/setup-go@v3
with:
go-version: ">=1.19.0"
- name: Configure AWS credentials
uses: ./.github/actions/configure-aws-credentials
with:
app_name: app
# Run infra CI on dev environment
environment: dev
- name: Run Terratest
run: make infra-test-service