From e0843a17e7a364ad121555e5bc3e72a07d3fb495 Mon Sep 17 00:00:00 2001 From: Clemens Solar Date: Mon, 22 Jan 2024 22:46:29 +0100 Subject: [PATCH] ci: build application before running cypress --- .github/workflows/main.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 912c344..f1df2dd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -68,11 +68,16 @@ jobs: node-version: 21.x cache: 'npm' + - name: Build application + run: | + npm ci + npm run build + - name: Run e2e tests uses: cypress-io/github-action@v6 with: browser: chrome - start: npm run build && npm run test:e2e:ci + start: npm run test:e2e:ci wait-on: 'http://localhost:8000' wait-on-timeout: 120