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 22d144d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 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,16 @@ 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) \
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 22d144d

Please sign in to comment.