Skip to content

Run Test262 Benchmarks #10

Run Test262 Benchmarks

Run Test262 Benchmarks #10

Workflow file for this run

name: Run Test262 Benchmarks
on:
workflow_dispatch
jobs:
test:
env:
TERM: screen-256color
OCAML_COMPILER: 4.14
RESULTS_FILE: results-test262_${{ github.sha }}.txt
SLACK_WEBHOOK_URL: ${{ vars.SLACK_WEBHOOK_URL }}
strategy:
fail-fast: false
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- name: Setup OCaml ${{ env.OCAML_COMPILER }}
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ env.OCAML_COMPILER }}
- name: Install dependencies
run: opam install -y . --deps-only --with-test
- name: Build
run: opam exec -- dune build @install
- name: Run Test262
# The workflow should succeed even if `test` has nonzero return code
continue-on-error: true
run: |
opam exec -- dune exec -- ecma-sl test --type test262 test/test262/tests --webhook-url "$SLACK_WEBHOOK_URL" > ${{ env.RESULTS_FILE }}
- name: Upload Results
uses: actions/upload-artifact@v4
with:
name: results-test262
path: ${{ env.RESULTS_FILE }}