ci: add Test262 workflow and CI scripts #4
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-integration | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| run-test262-subset: | |
| strategy: | |
| fail-fast: false | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: clippy, rustfmt | |
| - name: Install prerequisites | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y git | |
| - name: Run a small test262 subset | |
| if: ${{ !cancelled() }} | |
| env: | |
| FAIL_ON_FAILURE: 'true' | |
| run: | | |
| bash ci/run_test262.sh --limit 10 --fail-on-failure --focus language | |
| - name: Upload results | |
| if: ${{ !cancelled() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test262-results | |
| path: test262-results.log | |
| - name: Abort on error | |
| if: ${{ failure() }} | |
| run: echo "Some of jobs failed" && false |