Skip to content

Commit

Permalink
Added timestamp to test
Browse files Browse the repository at this point in the history
  • Loading branch information
d3vil-st committed Sep 16, 2024
1 parent a8d1d13 commit b45d889
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ jobs:
> ~/.s3cfg
mkdir -p tests/reports
- name: Install XMLStarlet
run: sudo apt install -y xmlstarlet

- name: Install Nebius CLI
run: |
curl -sSL https://storage.ai.nebius.cloud/nebius/install.sh | bash
Expand Down Expand Up @@ -109,6 +112,15 @@ jobs:
- name: Terraform Test
run: terraform test -verbose -junit-xml=tests/reports/TEST-result-${{ github.run_id }}.xml

- name: Set date in report
run: |
xmlstarlet ed \
--inplace \
-i '/testsuites' -t attr -n timestamp -v $(date --iso-8601=seconds) \
-i '/testsuites/testsuite[*]' -t attr -n timestamp -v $(date --iso-8601=seconds) \
-i '/testsuites/testsuite[*]/testcase' -t attr -n timestamp -v $(date --iso-8601=seconds) \
tests/reports/TEST-result-${{ github.run_id }}.xml
- name: Load test report history
uses: actions/checkout@v4
if: always()
Expand Down

0 comments on commit b45d889

Please sign in to comment.