2021-06-14 13:48:57 +02:00
|
|
|
# This CI job runs every night and tests all versions of Deno (canary and latest
|
|
|
|
# stable) across all OSes we support against the `epochs/daily` branch of WPT.
|
|
|
|
|
|
|
|
name: wpt_epoch
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
# Every night at 0:30 UTC. This is 20 minutes after `epochs/daily` branch is
|
|
|
|
# triggered to be created in WPT repo.
|
|
|
|
- cron: 30 0 * * *
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
wpt:
|
|
|
|
name: wpt / ${{ matrix.os }} / ${{ matrix.deno-version }}
|
2021-12-20 08:30:42 +05:30
|
|
|
if: github.repository == 'denoland/deno'
|
2021-06-14 13:48:57 +02:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
timeout-minutes: 30
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
deno-version: [v1.x, canary]
|
2023-04-01 08:35:31 +05:30
|
|
|
os: [ubuntu-22.04-xl]
|
2021-06-14 13:48:57 +02:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Clone repository
|
2024-02-07 08:47:44 +11:00
|
|
|
uses: actions/checkout@v4
|
2021-06-14 13:48:57 +02:00
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
persist-credentials: false
|
|
|
|
|
|
|
|
- name: Setup Deno
|
|
|
|
uses: denoland/setup-deno@v1
|
|
|
|
with:
|
|
|
|
deno-version: ${{ matrix.deno-version }}
|
|
|
|
|
|
|
|
- name: Install Python
|
2024-02-24 01:51:10 +11:00
|
|
|
uses: actions/setup-python@v5
|
2021-06-14 13:48:57 +02:00
|
|
|
with:
|
2024-07-10 23:59:57 -04:00
|
|
|
python-version: '3.11'
|
2021-06-14 13:48:57 +02:00
|
|
|
|
|
|
|
- name: Log versions
|
|
|
|
run: |
|
|
|
|
python --version
|
|
|
|
deno --version
|
|
|
|
|
|
|
|
- name: Switch WPT submodule to epochs/daily
|
2024-02-16 14:32:28 +11:00
|
|
|
working-directory: tests/wpt/suite/
|
2021-06-14 20:57:02 +02:00
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
git remote set-branches origin '*'
|
|
|
|
git fetch origin
|
2021-06-16 14:19:44 +02:00
|
|
|
git checkout $(./wpt rev-list --epoch 1d)
|
2021-06-14 20:57:02 +02:00
|
|
|
git checkout -b epochs/daily
|
2021-06-14 13:48:57 +02:00
|
|
|
|
|
|
|
- name: Configure hosts file for WPT (unix)
|
|
|
|
if: runner.os != 'Windows'
|
2024-02-16 14:32:28 +11:00
|
|
|
working-directory: tests/wpt/suite/
|
2021-06-14 13:48:57 +02:00
|
|
|
run: ./wpt make-hosts-file | sudo tee -a /etc/hosts
|
|
|
|
|
|
|
|
- name: Configure hosts file for WPT (windows)
|
|
|
|
if: runner.os == 'Windows'
|
2024-02-16 14:32:28 +11:00
|
|
|
working-directory: tests/wpt/suite/
|
2021-06-14 13:48:57 +02:00
|
|
|
run: python wpt make-hosts-file | Out-File $env:SystemRoot\System32\drivers\etc\hosts -Encoding ascii -Append
|
|
|
|
|
|
|
|
- name: Run web platform tests
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2024-07-25 17:20:44 +10:00
|
|
|
deno run --unstable -A --lock=tools/deno.lock.json --config=tests/config/deno.json \
|
2024-03-07 08:59:30 +11:00
|
|
|
./tests/wpt/wpt.ts setup
|
2024-07-25 17:20:44 +10:00
|
|
|
deno run --unstable -A --lock=tools/deno.lock.json --config=tests/config/deno.json \
|
2024-04-23 12:47:45 +10:00
|
|
|
./tests/wpt/wpt.ts run \ \
|
2024-04-17 20:40:47 +10:00
|
|
|
--binary=$(which deno) --quiet --release --no-ignore --json=wpt.json --wptreport=wptreport.json --exit-zero
|
2021-06-14 13:48:57 +02:00
|
|
|
|
|
|
|
- name: Upload wpt results to wpt.fyi
|
2021-06-14 20:57:02 +02:00
|
|
|
env:
|
2022-01-02 13:41:59 +01:00
|
|
|
WPT_FYI_USER: deno
|
2021-07-01 15:44:44 +02:00
|
|
|
WPT_FYI_PW: ${{ secrets.WPT_FYI_PW }}
|
2021-06-14 13:48:57 +02:00
|
|
|
run: |
|
2023-03-13 13:24:16 +01:00
|
|
|
deno run -A --lock=tools/deno.lock.json ./tools/upload_wptfyi.js wptreport.json --from-raw-file --daily-run
|