Skip to content

Commit

Permalink
ci: add json reporting(experimental)
Browse files Browse the repository at this point in the history
  • Loading branch information
obs-gh-nikhildua committed Oct 1, 2024
1 parent 20e964a commit 6b5b20a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/tests-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -78,4 +78,14 @@ 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:
name: JEST Tests # Name of the check run which will be created
path: test.xml # Path to test results (inside artifact .zip)
reporter: jest-junit # Format of test results
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ terraform.tfvars
tfplan
.terraform.lock.hcl
*_override.tf
*.xml

#python
venv
Expand Down

0 comments on commit 6b5b20a

Please sign in to comment.