Skip to content

Commit

Permalink
ci: move dependency installing to separate step
Browse files Browse the repository at this point in the history
Related to #83
  • Loading branch information
JoosepAlviste committed Jan 5, 2024
1 parent 2d84c4c commit 2723b7f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
3 changes: 2 additions & 1 deletion apps/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2723b7f

Please sign in to comment.