Skip to content

Commit

Permalink
ci(test-e2e): switch to self hosted runner
Browse files Browse the repository at this point in the history
  • Loading branch information
MFarabi619 committed Dec 18, 2024
1 parent ed753d7 commit d34ce52
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/TEST_E2E.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ on:
jobs:
test:
timeout-minutes: 10
runs-on: ubuntu-latest
runs-on: self-hosted
strategy:
matrix:
node-version: [20]
node-version: [22]

steps:
- name: 🛎️ Checkout Code
Expand All @@ -26,16 +26,16 @@ jobs:
- name: 📦 Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: true
version: 9

- name: Install Node.js
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: 20
node-version: ${{ matrix.node-version }}
cache: pnpm

- name: 🎭 Install Playwright Browsers
run: pnpm playwright install --with-deps
run: pnpm i; pnpm playwright install --with-deps

# - name: ⚗️ Run E2E Tests for Affected Projects
# run: pnpm nx affected -t e2e --parallel=2 --reporter=html --base=origin/main --head=HEAD --verbose
Expand Down
10 changes: 5 additions & 5 deletions apps/docs-e2e/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ const baseURL = process.env.BASE_URL || 'http://127.0.0.1:3000'
*/
export default defineConfig({
...nxE2EPreset(__filename, { testDir: './src' }),
fullyParallel: !process.env.CI,
// fullyParallel: !process.env.CI,
// Opt out of parallel tests on CI.
workers: process.env.CI ? 2 : undefined,
// workers: process.env.CI ? 2 : undefined,
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
retries: 2,
use: {
Expand Down Expand Up @@ -72,7 +72,7 @@ export default defineConfig({
},
],
// Ignore Chromium projects in CI to speed up runs
ignore: process.env.CI
? ['chromium (desktop)', 'chromium (mobile)']
: [],
// ignore: process.env.CI
// ? ['chromium (desktop)', 'chromium (mobile)']
// : [],
})

0 comments on commit d34ce52

Please sign in to comment.