From 86a4965e9a588602ef27f58e249db0c6180e2268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Tue, 29 Nov 2022 13:31:36 +0100 Subject: [PATCH] ci: Move full E2E tests into their own scheduled workflow (#4757) --- .github/workflows/ci-master.yml | 5 ---- .github/workflows/e2e-tests.yml | 46 +++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/e2e-tests.yml diff --git a/.github/workflows/ci-master.yml b/.github/workflows/ci-master.yml index a7c64be89..44cc3e063 100644 --- a/.github/workflows/ci-master.yml +++ b/.github/workflows/ci-master.yml @@ -35,11 +35,6 @@ jobs: - name: Test run: pnpm test - - name: Test E2E - run: | - pnpm cypress:install - pnpm test:e2e:all - - name: Lint env: CI_LINT_MASTER: true diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml new file mode 100644 index 000000000..52f873627 --- /dev/null +++ b/.github/workflows/e2e-tests.yml @@ -0,0 +1,46 @@ +name: End-to-End tests + +on: + schedule: + - cron: '0 3 * * *' + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + timeout-minutes: 30 + + strategy: + matrix: + node-version: [14.x, 16.x] + + steps: + - uses: actions/checkout@v3 + + - uses: pnpm/action-setup@v2.2.4 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Build + run: pnpm build + + - name: Test E2E + run: | + pnpm cypress:install + pnpm test:e2e:all + + - name: Notify Slack on failure + uses: act10ns/slack@v2.0.0 + if: failure() + with: + status: ${{ job.status }} + channel: '#updates-build-alerts' + webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}