Skip to content

Commit

Permalink
Update to end to end test approach in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
johncollinson2001 committed Sep 16, 2024
1 parent cd236f2 commit 9f925f9
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/ci-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,22 @@ jobs:
terraform init -backend=false
terraform test
working-directory: tests/integration-tests

- name: Install Go
uses: actions/setup-go@v1
with:
go-version: 1.21

- name: Run End to End Tests
uses: cloudposse/github-action-terratest@main
with:
sourceDir: tests/end-to-end-tests
run: |
go mod tidy
go test -v -timeout 10m
working-directory: tests/end-to-end-tests
env:
ARM_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
ARM_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
ARM_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
ARM_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

static-code-analysis:
name: Static Code Analysis
Expand Down

0 comments on commit 9f925f9

Please sign in to comment.