From 31a616e8e4afc5dda5252d4374398646f7b855c1 Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Fri, 3 Feb 2023 22:18:17 +0100 Subject: [PATCH] wip [skip ci] --- .github/workflows/daily-wpt-fyi.yml | 81 +++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 .github/workflows/daily-wpt-fyi.yml diff --git a/.github/workflows/daily-wpt-fyi.yml b/.github/workflows/daily-wpt-fyi.yml new file mode 100644 index 00000000000..90ddab57403 --- /dev/null +++ b/.github/workflows/daily-wpt-fyi.yml @@ -0,0 +1,81 @@ +# This workflow runs every night and tests various versions of Node.js +# (main branch build, current, Active LTS, and Maintenance) against the +# `epochs/daily` branch of WPT. + +name: Daily WPT report + +on: + workflow_dispatch: + +env: + PYTHON_VERSION: '3.11' + +permissions: + contents: read + +jobs: + wptreport: + strategy: + matrix: + ref: + - main + - current + - lts/* + - lts/-1 + fail-fast: false + runs-on: ubuntu-latest + continue-on-error: true + steps: + - name: Set up Python ${{ env.PYTHON_VERSION }} + uses: actions/setup-python@v4 + with: + python-version: ${{ env.PYTHON_VERSION }} + - name: Environment Information + run: npx envinfo + + # checkout main & build + - uses: actions/checkout@v3 + name: Checkout ${{ matrix.ref }} branch + if: matrix.ref == 'main' + with: + ref: ${{ matrix.ref }} + persist-credentials: false + - name: Build Node.js + if: matrix.ref == 'main' + run: make build-ci -j2 V=1 CONFIG_FLAGS="--error-on-warn" + + # or install a version and checkout + - name: Install Node.js + if: matrix.ref != 'main' + id: setup-node + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.ref }} + - name: Checkout ${{ steps.setup-node.outputs.node-version }} tag + uses: actions/checkout@v3 + if: matrix.ref != 'main' + with: + persist-credentials: false + ref: ${{ steps.setup-node.outputs.node-version }} + - name: Set env.NODE + if: matrix:ref != 'main' + run: echo "NODE=(which node)" >> $GITHUB_ENV + - name: Remove stale WPT + run: rm -rf wpt + working-directory: ./test/fixtures + - uses: actions/checkout@v3 + with: + repository: web-platform-tests/wpt + persist-credentials: false + path: ./test/fixtures/wpt + clean: false + ref: epochs/daily + - name: Run WPT and generate report + run: make test-wpt-report + - name: Upload GitHub Actions artifact + uses: actions/upload-artifact@v3 + with: + path: out/wpt/wptreport.json + name: WPT Reports + if-no-files-found: ignore + if: always()