Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update(ci): upgrade image docker #207

Merged
merged 20 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
timeout-minutes: 60
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.48.0-jammy
image: mcr.microsoft.com/playwright:v1.49.1-noble
options: --user 1001
strategy:
fail-fast: false
matrix:
Expand All @@ -34,6 +35,9 @@ jobs:
with:
path: automated-tests

- name: Configure Git safe directory
run: git config --global --add safe.directory '/__w/automated-tests-web/automated-tests-web'

- name: Setup Node.js for Uplink Web πŸ”¨
uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -71,7 +75,8 @@ jobs:
needs: test
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.48.0-jammy
image: mcr.microsoft.com/playwright:v1.49.1-noble
options: --user 1001
steps:
- name: Download Blob Report from Desktop
uses: actions/download-artifact@v4
Expand Down
28 changes: 16 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"license": "MIT",
"devDependencies": {
"@faker-js/faker": "^8.4.1",
"@playwright/test": "^1.48.0",
"@playwright/test": "^1.49.1",
"@types/node": "^20.14.2",
"allure-playwright": "^3.0.0-beta.7",
"prettier": "3.2.5",
Expand Down
6 changes: 4 additions & 2 deletions playwright.ci.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default defineConfig({
timeout: 60000,
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: "http://localhost:5173/",
baseURL: "http://127.0.0.1:5173",

/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
testIdAttribute: "data-cy",
Expand Down Expand Up @@ -94,10 +94,12 @@ export default defineConfig({
// },
],

// Run your local dev server before starting the tests
//Run your local dev server before starting the tests
webServer: {
command: "cd .. && npm run dev",
url: "http://127.0.0.1:5173",
reuseExistingServer: !process.env.CI,
stdout: "pipe",
timeout: 120 * 1000,
},
});
Loading