Skip to content

EcmaScript official test suite (test262) #474

EcmaScript official test suite (test262)

EcmaScript official test suite (test262) #474

Workflow file for this run

name: EcmaScript official test suite (test262)
on:
schedule:
# Run every day at midnight.
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
run_test262:
name: Run the test262 test suite
runs-on: ubuntu-24.04
timeout-minutes: 60
steps:
- name: Checkout the main Boa repository
uses: actions/checkout@v4
with:
repository: boa-dev/boa
ref: main
submodules: true
path: boa
- name: Install the Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
target
~/.cargo/git
~/.cargo/registry
key: ${{ runner.os }}-cargo-test262-${{ hashFiles('**/Cargo.lock') }}
# Run the test suite.
- name: Run the test262 test suite
run: |
cd boa
mkdir ../results
cargo run --release --bin boa_tester -- run -v -o ../results/test262
- name: Checkout the data repository
uses: actions/checkout@v4
with:
path: data
- name: Commit files
run: |
cp -r ./results/test262/* ./data/test262/
cd data
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
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
directory: data