Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE 406] Fix deploy Github Actions workflow #407

Merged
merged 14 commits into from
Aug 25, 2023
Merged
Prev Previous commit
Next Next commit
Let ci-infra run and fix tests
daphnegold committed Aug 24, 2023
commit d7208cc088da18c4d85a0fcb489020d210b5eb41
52 changes: 26 additions & 26 deletions .github/workflows/ci-infra.yml
Original file line number Diff line number Diff line change
@@ -71,33 +71,33 @@ jobs:
uses: aquasecurity/[email protected]
with:
github_token: ${{ github.token }}
# !! Uncomment to trigger automated infra tests once dev environment is set up
# infra-test-e2e:
# name: End-to-end tests
# runs-on: ubuntu-latest
#
# permissions:
# contents: read
# id-token: write
#
# steps:
# - uses: actions/checkout@v3

# - uses: hashicorp/setup-terraform@v2
# with:
# terraform_version: 1.2.1
# terraform_wrapper: false
infra-test-e2e:
name: End-to-end tests
runs-on: ubuntu-latest

# - uses: actions/setup-go@v3
# with:
# go-version: ">=1.19.0"
permissions:
contents: read
id-token: write

# - name: Configure AWS credentials
# uses: ./.github/actions/configure-aws-credentials
# with:
# app_name: frontend
# # Run infra CI on dev environment
# environment: dev
steps:
- uses: actions/checkout@v3

- uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.2.1
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: frontend
# Run infra CI on dev environment
environment: dev

# - name: Run Terratest
# run: make infra-test
- name: Run Terratest
run: make infra-test
4 changes: 2 additions & 2 deletions infra/test/infra_test.go
Original file line number Diff line number Diff line change
@@ -50,13 +50,13 @@ func BuildAndPublish(t *testing.T) {

shell.RunCommand(t, shell.Command{
Command: "make",
Args: []string{"release-build"},
Args: []string{"release-build", "APP_NAME=app"},
WorkingDir: "../../",
})

shell.RunCommand(t, shell.Command{
Command: "make",
Args: []string{"release-publish"},
Args: []string{"release-publish", "APP_NAME=app"},
WorkingDir: "../../",
})
}