From 2723b7f6ff97d6fc800e76a5a572eeb79c210a35 Mon Sep 17 00:00:00 2001 From: Joosep Alviste Date: Fri, 5 Jan 2024 23:58:30 +0200 Subject: [PATCH] ci: move dependency installing to separate step Related to #83 --- .github/workflows/default.yml | 8 ++++++-- apps/e2e/package.json | 3 ++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 041cae4..025f3f3 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -47,15 +47,19 @@ jobs: cp .env.example .env bash bin/generate-secret-token.sh + - name: Installing dependencies + run: | + pnpm install + pnpm exec nx affected -t install-deps:e2e + - name: Checks run: | pnpm install - pnpm migrate:test + pnpm exec nx affected -t migrate:test pnpm exec nx affected -t lint,tsc,test:coverage,build --verbose - name: E2E tests run: | - (cd apps/e2e && npx playwright install chromium --with-deps) pnpm test:e2e - uses: actions/upload-artifact@v3 if: always() diff --git a/apps/e2e/package.json b/apps/e2e/package.json index c716dfe..96e2804 100644 --- a/apps/e2e/package.json +++ b/apps/e2e/package.json @@ -4,7 +4,8 @@ "type": "module", "scripts": { "test:e2e": "pnpm exec playwright test", - "test:e2e:headed": "pnpm test:e2e -- --headed" + "test:e2e:headed": "pnpm test:e2e -- --headed", + "install-deps:e2e": "playwright install chromium --with-deps" }, "devDependencies": { "@playwright/test": "^1.35.1",