Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit faa9388

Browse files
fix(tests): Remove useless check
1 parent ead6c1c commit faa9388

File tree

2 files changed

+1
-41
lines changed

2 files changed

+1
-41
lines changed

‎.github/workflows/tests.yml‎

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -45,49 +45,9 @@ jobs:
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 }}

‎.github/workflows/tests_results.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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' }}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /