Skip to content

Commit 4fd048d

Browse files
committed
CI update to use playwright docker image
1 parent 763a03b commit 4fd048d

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636
e2e-tests:
3737
runs-on: ubuntu-latest
3838
timeout-minutes: 15
39+
container:
40+
image: mcr.microsoft.com/playwright:v1.44.0-jammy
41+
options: --user 1001
3942

4043
strategy:
4144
matrix:
@@ -64,26 +67,10 @@ jobs:
6467
working-directory: ./react-example
6568
run: yarn install --frozen-lockfile
6669

67-
- name: Cache Playwright browsers
68-
uses: actions/cache@v4
69-
id: playwright-cache
70-
with:
71-
path: ~/.cache/ms-playwright
72-
key: ${{ runner.os }}-playwright-${{ hashFiles('react-example/package.json', 'react-example/yarn.lock') }}
73-
restore-keys: |
74-
${{ runner.os }}-playwright-
75-
76-
- name: Install browser system dependencies
77-
working-directory: ./react-example
78-
run: |
79-
echo "🔧 Installing ${{ matrix.browser }} system dependencies..."
80-
sudo npx playwright install-deps ${{ matrix.browser }}
81-
echo "✅ System dependencies installed"
82-
8370
- name: Install Playwright browsers
8471
working-directory: ./react-example
8572
run: |
86-
echo "📥 Installing ${{ matrix.browser }} browser binary..."
73+
echo "📥 Installing ${{ matrix.browser }} browser (dependencies already in Docker image)..."
8774
yarn playwright install ${{ matrix.browser }}
8875
echo "✅ Browser installed"
8976
- name: Create environment configuration

0 commit comments

Comments
 (0)