File tree Expand file tree Collapse file tree 2 files changed +1
-41
lines changed Expand file tree Collapse file tree 2 files changed +1
-41
lines changed Original file line number Diff line number Diff line change 4545 name : event_file
4646 path : ${{ github.event_path }}
4747
48- check-last-run :
49- name : Check last run
50- runs-on : ubuntu-latest
51- outputs :
52- run_tests : ${{ steps.last-run.outputs.run_tests }}
53- steps :
54- - name : Checkout
55- if : github.event_name != 'pull_request'
56- # if: github.event_name == 'schedule'
57- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
58- with :
59- ref : gh-pages
60-
61- - name : Get last run commit and compare with current commit
62- id : last-run
63- run : |
64- if [ ${{ github.event_name }} != 'pull_request' ]; then
65- # if [ ${{ github.event_name }} == 'schedule' ]; then
66- if [ -f ./runtime-test-results/test_results.json ]; then
67- last_run_commit=$(jq -r '.commit_sha' ./runtime-test-results/test_results.json)
68- last_run_failed=$(jq -r '.tests_failed' ./runtime-test-results/test_results.json)
69- else
70- last_run_commit="none"
71- last_run_failed="true"
72- fi
73- current_commit=${{ github.sha }}
74- if [ "$last_run_commit" == "$current_commit" ] && [ "$last_run_failed" == "false" ]; then
75- echo "Last run commit and current commit are the same. Skipping tests..."
76- echo "run_tests=false" >> $GITHUB_OUTPUT
77- else
78- echo "Last run commit and current commit are different or last run failed. Running tests..."
79- echo "run_tests=true" >> $GITHUB_OUTPUT
80- fi
81- else
82- echo "Not a schedule event. Continuing..."
83- echo "run_tests=true" >> $GITHUB_OUTPUT
84- fi
85-
8648 gen-matrix :
8749 name : Generate matrix
8850 runs-on : ubuntu-latest
89- if : ${{ needs.check-last-run.outputs.run_tests }}
90- needs : check-last-run
9151 outputs :
9252 build-types : ${{ steps.set-matrix.outputs.build-types }}
9353 hw-types : ${{ steps.set-matrix.outputs.hw-types }}
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ jobs:
163163 - name : Generate report
164164 if : ${{ !cancelled() && (env.original_event == 'schedule' || env.original_event == 'workflow_dispatch') }} # codespell:ignore cancelled
165165 env :
166- REPORT_FILE : ./runtime-test-results/RUNTIME_TESTS_REPORT .md
166+ REPORT_FILE : ./runtime-test-results/RUNTIME_TEST_RESULTS .md
167167 WOKWI_RUN_ID : ${{ github.event.workflow_run.id }}
168168 BUILD_RUN_ID : ${{ env.original_run_id }}
169169 IS_FAILING : ${{ env.original_conclusion == 'failure' || env.original_conclusion == 'timed_out' || github.event.workflow_run.conclusion == 'failure' || github.event.workflow_run.conclusion == 'timed_out' || job.status == 'failure' }}
You can’t perform that action at this time.
0 commit comments