Skip to content

Commit

Permalink
Upload test results to s3
Browse files Browse the repository at this point in the history
  • Loading branch information
d3vil-st committed Sep 12, 2024
1 parent a7c5797 commit 7eb5493
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ env:
jobs:
terraform:
name: 'Terraform ${{ matrix.solution.name }}'
environment:
name: project-e00pjzzrtk1fs3yavy
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -57,10 +59,20 @@ jobs:

# Run Terraform Tests
- name: Terraform Test
run: terraform test -verbose -junit-xml=TEST-result.xml
run: terraform test -verbose -junit-xml=tests/TEST-result.xml

- name: Test Summary
uses: test-summary/action@v2
with:
paths: "${{ matrix.solution.name }}/TEST-result.xml"
paths: "${{ matrix.solution.name }}/tests/TEST-result.xml"
if: always()

- name: Upload test results
uses: shallwefootball/s3-upload-action@master
with:
aws_key_id: ${{ secrets.TF_VAR_LOKI_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.TF_VAR_LOKI_SECRET_KEY }}
aws_bucket: terraform-test-reports
endpoint: https://storage.eu-north1.nebius.cloud:443
source_dir: "${{ matrix.solution.name }}/tests"
if: always()

0 comments on commit 7eb5493

Please sign in to comment.