Skip to content

Commit

Permalink
update(ci): fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
luisecm committed Dec 12, 2024
1 parent 5088811 commit 9fa8e72
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,43 +25,38 @@ jobs:
matrix:
project: ["desktop-chrome", "mobile-chrome"]
steps:
- name: Checkout Uplink Web directory 🔖
- name: Checkout Automated Tests directory 🔖
uses: actions/checkout@v4
with:
repository: Satellite-im/UplinkWeb

- name: Checkout Automated Tests directory 🔖
- name: Checkout Uplink Web directory 🔖
uses: actions/checkout@v4
with:
path: automated-tests
repository: Satellite-im/UplinkWeb
path: app

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

- name: Setup Node.js for Uplink Web 🔨
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies for Uplink Web 📦
run: npm install

- name: Install dependencies for Testing Repo 📦
working-directory: automated-tests
run: npm ci

- name: Set read permissions
run: chmod -R u+rw src
- name: Install dependencies for Uplink Web 📦
working-directory: app
run: npm install

- name: Run Playwright tests
working-directory: automated-tests
run: npx playwright test -c playwright.ci.config.ts --project=${{ matrix.project }}

- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report-${{ matrix.project }}
path: automated-tests/blob-report/
path: blob-report/
retention-days: 1

- name: Add label if any of build jobs failed
Expand Down
2 changes: 1 addition & 1 deletion playwright.ci.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default defineConfig({

//Run your local dev server before starting the tests
webServer: {
command: "cd .. && npm run dev",
command: "cd app && npm run dev",
url: "http://127.0.0.1:5173",
reuseExistingServer: !process.env.CI,
stdout: "pipe",
Expand Down

0 comments on commit 9fa8e72

Please sign in to comment.