fix(vm): reset implicit return value when pushing new call frames (#4… #12644
Workflow file for this run
This file contains hidden or 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
| name: test262 | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - releases/** | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| run_test262: | |
| name: Run the test262 test suite | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| path: boa | |
| persist-credentials: false | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@631a55b12751854ce901bb631d5902ceb48146f7 # stable | |
| with: | |
| toolchain: stable | |
| - name: Cache Cargo | |
| uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1 | |
| - name: Checkout the data repo | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| repository: boa-dev/data | |
| path: data | |
| persist-credentials: false | |
| - name: Run the test262 test suite | |
| run: | | |
| cd boa | |
| mkdir -p ../results/test262 | |
| cargo run --release --bin boa_tester -- run -v -o ../results/test262 | |
| cd .. | |
| - name: Compare results | |
| shell: bash | |
| run: | | |
| cd boa | |
| base_results="../data/test262/refs/heads/main/latest.json" | |
| pr_results="../results/test262/pull/latest.json" | |
| output_dir="../results/outputs" | |
| test -f "$base_results" | |
| test -f "$pr_results" | |
| comment="$(./target/release/boa_tester compare "$base_results" "$pr_results" -m)" | |
| maincommit="$(jq -r '.c' "$base_results")" | |
| mkdir -p "$output_dir" | |
| { | |
| echo "<!-- test262-compliance-report -->" | |
| echo "### Test262 conformance changes" | |
| echo | |
| echo "$comment" | |
| echo | |
| echo "Tested main commit: [\`${maincommit}\`](${{ github.event.pull_request.base.repo.html_url }}/commit/${maincommit})" | |
| echo "Tested PR commit: [\`${{ github.event.pull_request.head.sha }}\`](${{ github.event.pull_request.head.repo.html_url }}/commit/${{ github.event.pull_request.head.sha }})" | |
| echo "Compare commits: ${{ github.event.pull_request.base.repo.html_url }}/compare/${maincommit}...${{ github.event.pull_request.head.sha }}" | |
| } > "$output_dir/comment.md" | |
| echo "${{ github.event.pull_request.number }}" > "$output_dir/pr_number.txt" | |
| - name: Upload results | |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | |
| with: | |
| name: test262-results | |
| path: results/outputs | |
| retention-days: 1 |