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 fdc72b2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
15 changes: 13 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,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
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 fdc72b2

Please sign in to comment.