Skip to content

Commit

Permalink
ci(e2e): fix e2e workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Falinor committed Jul 1, 2024
1 parent fa7350e commit 1ac308a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 1ac308a

Please sign in to comment.