From 7eb5493ec32d2ba014f5a33902c03f85e1dff954 Mon Sep 17 00:00:00 2001 From: Ilia Kargapolov Date: Thu, 12 Sep 2024 17:12:34 +0200 Subject: [PATCH] Upload test results to s3 --- .github/workflows/terraform.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index 4f8fa730..3d10669e 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -12,6 +12,8 @@ env: jobs: terraform: name: 'Terraform ${{ matrix.solution.name }}' + environment: + name: project-e00pjzzrtk1fs3yavy runs-on: ubuntu-latest strategy: matrix: @@ -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()