Skip to content

Commit

Permalink
fixing an ealier commit that changed back .github/workflows/ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
TeamSPoon committed Sep 1, 2024
1 parent efb6652 commit fa9a2b1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: CI Job to Generate JUnit Reports with Diff and Allure Reports

on:
schedule:
- cron: 17 0 * * * # nightly run; 17th minute to decrease odds of delayed or dropped job
push:
branches:
- main
Expand Down Expand Up @@ -47,7 +49,11 @@ jobs:
continue-on-error: true
run: |
TIMESTAMP=$(date +"%Y-%m-%dT%H:%M:%S")
if [ ${{ github.event_name }} == 'schedule' ]; then
./scripts/run_nightly_tests.sh -t $TIMESTAMP
else
./scripts/run_commit_tests.sh -t $TIMESTAMP
fi
echo "TIMESTAMP=$(echo $TIMESTAMP)" >> $GITHUB_ENV
env:
TERM: xterm-256color
Expand Down Expand Up @@ -138,7 +144,10 @@ jobs:
gh_pages: test-results
allure_report: allure-report
allure_history: allure-history
subfolder: ${{ env.SUBFOLDER }}
keep_reports: 20
env:
SUBFOLDER: ${{ github.event_name == 'schedule' && 'nightly' || 'ci' }}

- name: Deploy report to Github Pages
if: always()
Expand Down

0 comments on commit fa9a2b1

Please sign in to comment.