Skip to content

Commit

Permalink
run server from actions
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioCasCeb committed Feb 1, 2024
1 parent 3e7a997 commit 0e34eba
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/playwright-visual-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ jobs:
- name: Install Playwright Browsers
run: npx playwright install --with-deps

# - name: Run Personal server
# run: npm run start &
- name: Build project
run: npm run build
- name: Run server and test
run: |
npm run serve &
npm run test
- name: Run Playwright tests
run: npm run test
# - name: Run Playwright tests
# run: npm run test

- uses: actions/upload-artifact@v3
if: always()
Expand Down
10 changes: 5 additions & 5 deletions packages/web-new/playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ module.exports = defineConfig({
],

/* Run your local dev server before starting the tests */
webServer: {
command: 'npm run serve',
url: 'http://127.0.0.1:5100',
reuseExistingServer: !process.env.CI,
},
// webServer: {
// command: 'npm run serve',
// url: 'http://127.0.0.1:5100',
// reuseExistingServer: !process.env.CI,
// },
});
2 changes: 1 addition & 1 deletion packages/web-new/tests/test.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
********************************************************************************/
const { test, expect } = require('@playwright/test');

//Open the playground app before any test is runned
//Open the playground app before any test is ran
test.beforeEach(async ({ page }) => {
await page.goto('/')
});
Expand Down

0 comments on commit 0e34eba

Please sign in to comment.