Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .github/workflows/engine-tests-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,23 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}

- name: Download PR number
uses: actions/download-artifact@v8
with:
name: pr_number.txt
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}

- name: Read PR number
id: pr
run: |
PR_NUMBER="$(head pr_number.txt -n1)"
if [[ ! "$PR_NUMBER" =~ ^[1-9][0-9]*$ ]]; then
echo "Unexpected contents of pr_number.txt: $PR_NUMBER"
exit 1
fi
echo "number=$PR_NUMBER" >> "$GITHUB_OUTPUT"

- name: Check for results
id: check
run: |
Expand All @@ -63,4 +80,4 @@ jobs:
with:
path: comment-body.txt
header: test262-engine-results
number: ${{ github.event.workflow_run.pull_requests[0].number }}
number: ${{ steps.pr.outputs.number }}
11 changes: 10 additions & 1 deletion .github/workflows/engine-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
changed-tests:
name: Identify changed tests
name: Prepare engine tests run
runs-on: ubuntu-latest
outputs:
any_changed: ${{ steps.changed.outputs.any_changed }}
Expand All @@ -20,6 +20,15 @@ jobs:
with:
files: test/

- name: Record PR number
run: echo "${{ github.event.number }}" > pr_number.txt

- name: Upload PR number
uses: actions/upload-artifact@v7
with:
path: pr_number.txt
archive: false

# Future work:
# - Run each step of the matrix on main as well, and indicate in the table
# whether a test moved from passing to failing or vice versa
Expand Down