-
-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* don't run test262 on push anymore * wrap in an expression * remove writing to the gh-pages branch * checkout data repo for comparison * check dirs * add back in PR checks
- Loading branch information
1 parent
08b0deb
commit e754df3
Showing
2 changed files
with
5 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,5 @@ | ||
name: EcmaScript official test suite (test262) | ||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- v* | ||
pull_request: | ||
branches: | ||
- main | ||
|
@@ -37,13 +32,12 @@ jobs: | |
~/.cargo/registry | ||
key: ${{ runner.os }}-cargo-test262-${{ hashFiles('**/Cargo.lock') }} | ||
|
||
- name: Checkout GitHub pages | ||
- name: Checkout the data repo | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: gh-pages | ||
path: gh-pages | ||
|
||
# Run the test suite. | ||
repository: boa-dev/data | ||
path: data | ||
# Run the test suite. | ||
- name: Run the test262 test suite | ||
run: | | ||
cd boa | ||
|
@@ -58,7 +52,7 @@ jobs: | |
shell: bash | ||
run: | | ||
cd boa | ||
comment="$(./target/release/boa_tester compare ../gh-pages/test262/refs/heads/main/latest.json ../results/test262/pull/latest.json -m)" | ||
comment="$(./target/release/boa_tester compare ../data/test262/refs/heads/main/latest.json ../results/test262/pull/latest.json -m)" | ||
echo "comment<<EOF" >> $GITHUB_OUTPUT | ||
echo "$comment" >> $GITHUB_OUTPUT | ||
echo "EOF" >> $GITHUB_OUTPUT | ||
|
@@ -99,27 +93,3 @@ jobs: | |
${{ steps.compare.outputs.comment }} | ||
# Commit changes to GitHub pages. | ||
- name: Checkout GitHub pages | ||
if: github.event_name == 'push' | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: gh-pages | ||
path: gh-pages | ||
- name: Commit files | ||
if: github.event_name == 'push' | ||
run: | | ||
cp -r ./results/test262/* ./gh-pages/test262/ | ||
cd gh-pages | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add test262 | ||
git commit -m "Add new test262 results" -a | ||
cd .. | ||
- name: Upload results | ||
if: github.event_name == 'push' | ||
uses: ad-m/[email protected] | ||
with: | ||
directory: gh-pages | ||
branch: gh-pages | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters