Skip to content

Fix memory leak on Script and Module source handling (#5050) #16

Fix memory leak on Script and Module source handling (#5050)

Fix memory leak on Script and Module source handling (#5050) #16

name: Update Test262 Results
on:
release:
types:
- published
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
update_test262_results:
name: Update Test262 Results
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
# Checkout the main repository
- name: Checkout repository
uses: actions/checkout@v6
with:
path: boa
# Install Rust toolchain
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
# Cache cargo dependencies
- name: Cache cargo
uses: actions/cache@v5
with:
path: |
target
~/.cargo/git
~/.cargo/registry
key: ${{ runner.os }}-${{ runner.arch }}-cargo-${{ hashFiles('**/Cargo.lock') }}
# Checkout the `data` repository
- name: Checkout the data repo
uses: actions/checkout@v6
with:
repository: boa-dev/data
token: ${{ secrets.DATA_PAT }}
path: data
# Run the Test262 test suite
- name: Run the test262 test suite
run: |
cd boa
cargo run --release --bin boa_tester -- run -v -o ../data/test262
# Commit and push results back to the `data` repo
- name: Commit results
run: |
cd data
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
git add test262
git commit -m "Update Test262 results ( ${{ github.ref_name }} )"
- name: Push changes
uses: ad-m/github-push-action@master
with:
# cannot use secrets.GITHUB_TOKEN since it only gives you
# write permissions to the current repository.
github_token: ${{ secrets.DATA_PAT }}
repository: boa-dev/data
directory: data