Skip to content

Commit a065faf

Browse files
author
alexperez
committed
fix: update GitHub Actions workflow to use matrix strategy for OS and streamline Playwright installation
1 parent 5b82fce commit a065faf

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/deployment.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,24 @@ on:
1313
- main
1414
jobs:
1515
test_linux:
16-
name: Ubuntu
17-
runs-on: ubuntu-latest
16+
name: ${{ matrix.os }}
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
os: [ubuntu-20.04]
21+
runs-on: ${{ matrix.os }}
1822
steps:
1923
- uses: actions/checkout@v2
2024
- uses: actions/setup-node@v1
2125
with:
2226
node-version: 16
27+
- uses: microsoft/playwright-github-action@v1
2328
- uses: actions/cache@v1
2429
with:
2530
path: ~/.npm
2631
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
2732
restore-keys: |
2833
${{ runner.os }}-node-
29-
- name: Install Playwright dependencies
30-
run: npx playwright install --with-deps
3134
- name: Install dependencies
3235
run: npm ci
3336
- name: Run tests
@@ -47,8 +50,6 @@ jobs:
4750
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
4851
restore-keys: |
4952
${{ runner.os }}-node-
50-
- name: Install Playwright dependencies
51-
run: npx playwright install --with-deps
5253
- name: Install dependencies
5354
run: npm ci
5455
- name: Run tests
@@ -96,4 +97,4 @@ jobs:
9697
prerelease: false
9798
- run: npm publish --access public
9899
env:
99-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
100+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)