diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index eadab4ac3..166bb4b03 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -20,14 +20,21 @@ jobs: - name: Enable Corepack run: corepack enable - - name: Cypress run - uses: cypress-io/github-action@v6 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: yarn + + - run: yarn --version + + - name: Install + run: yarn --immutable + + - name: Run cypress tests + run: yarn workspace @zerologementvacant/e2e start env: - CYPRESS_API: ${{ secrets.API_HOST }} - CYPRESS_BASE_URL: ${{ secrets.HOST }} + CYPRESS_API: ${{ vars.API_HOST }} + CYPRESS_BASE_URL: ${{ vars.HOST }} CYPRESS_EMAIL: ${{ secrets.CYPRESS_EMAIL }} CYPRESS_PASSWORD: ${{ secrets.CYPRESS_PASSWORD }} - with: - working-directory: e2e - build: false - start: yarn cypress run diff --git a/e2e/package.json b/e2e/package.json index fb91c7119..ba9379856 100644 --- a/e2e/package.json +++ b/e2e/package.json @@ -2,7 +2,7 @@ "name": "@zerologementvacant/e2e", "scripts": { "dev": "dotenvx run -- cypress open", - "test": "dotenvx run -- cypress run" + "start": "dotenvx run -- cypress run" }, "devDependencies": { "@dotenvx/dotenvx": "^1.0.0",