From fdc72b2a96f8f1985f5363400fd79fb5aa1ff794 Mon Sep 17 00:00:00 2001 From: obs-gh-nikhildua <124205220+obs-gh-nikhildua@users.noreply.github.com> Date: Wed, 25 Sep 2024 15:30:26 -0700 Subject: [PATCH] ci: add json reporting(experimental) --- .github/workflows/tests-integration.yaml | 15 +++++++++++++-- .gitignore | 1 + 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests-integration.yaml b/.github/workflows/tests-integration.yaml index 0dd0e01a..ea547465 100644 --- a/.github/workflows/tests-integration.yaml +++ b/.github/workflows/tests-integration.yaml @@ -65,7 +65,7 @@ jobs: - name: Setup Terraform uses: hashicorp/setup-terraform@v3 with: - terraform_version: 1.9.5 + terraform_version: "1.10.0-alpha20240918" - name: Terraform Init id: init @@ -78,4 +78,15 @@ jobs: - name: Terraform Test id: test run: | - terraform test -verbose + terraform test -verbose -junit-xml=test.xml + ls -l + pwd + + - name: Publish Test Report + uses: dorny/test-reporter@v1 + if: success() || failure() # always run even if the previous step fails + with: + artifact: test-results # artifact name + name: JEST Tests # Name of the check run which will be created + path: '*.xml' # Path to test results (inside artifact .zip) + reporter: jest-junit # Format of test results \ No newline at end of file diff --git a/.gitignore b/.gitignore index 3ef439e9..7436b82a 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ terraform.tfvars tfplan .terraform.lock.hcl *_override.tf +*.xml #python venv