Skip to content

Commit a21afd9

Browse files
committed
fix: ci test with playwright
1 parent 15f0454 commit a21afd9

File tree

3 files changed

+28
-11
lines changed

3 files changed

+28
-11
lines changed

.github/workflows/macos.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,14 @@ on:
1414
# Allows you to run this workflow manually from the Actions tab
1515
workflow_dispatch:
1616

17-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
18-
permissions:
19-
contents: read
20-
2117
jobs:
2218
build:
2319
strategy:
2420
matrix:
2521
node-version: [22]
2622

2723
# The type of runner that the job will run on
28-
runs-on: macos-12
24+
runs-on: macos-latest
2925

3026
steps:
3127
- uses: actions/checkout@v6
@@ -48,11 +44,26 @@ jobs:
4844
with:
4945
node-version: ${{ matrix.node-version }}
5046

47+
- name: Install macOS dependencies
48+
if: matrix.platform == 'macos-latest'
49+
run: |
50+
brew install gnu-tar coreutils
51+
echo "Homebrew dependencies installed"
52+
5153
- name: Install Dependencies
52-
run: npm i && npm i -D cli-truncate iconv-corefoundation
54+
run: npm ci && npm i -D cli-truncate iconv-corefoundation
5355

5456
- name: Check lint
5557
run: npm run lint
5658

59+
- name: Install Playwright Browsers
60+
run: npx playwright@1.57.0 install --with-deps
61+
62+
- name: Run headless unit test
63+
run: npm run test -- --reporters=default
64+
65+
- name: Run headless e2e test
66+
run: npm run e2e
67+
5768
- name: Build the app
5869
run: npm run electron:build

.github/workflows/ubuntu.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,18 @@ jobs:
5151
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
5252
5353
- name: Install Dependencies
54-
run: npm i
54+
run: npm ci
5555

5656
- name: Check lint
5757
run: npm run lint
5858

59+
- name: Install Playwright Browsers
60+
run: npx playwright@1.57.0 install --with-deps
61+
5962
- name: Run headless unit test
6063
uses: GabrielBB/xvfb-action@v1
6164
with:
62-
run: npm run test
65+
run: npm run test -- --reporters=default
6366

6467
- name: Run headless e2e test
6568
uses: GabrielBB/xvfb-action@v1

.github/workflows/windows.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
node-version: [22]
2626

2727
# The type of runner that the job will run on
28-
runs-on: windows-2022
28+
runs-on: windows-latest
2929

3030
steps:
3131
- uses: actions/checkout@v6
@@ -49,13 +49,16 @@ jobs:
4949
node-version: ${{ matrix.node-version }}
5050

5151
- name: Install Dependencies
52-
run: npm i
52+
run: npm ci
5353

5454
- name: Check lint
5555
run: npm run lint
5656

57+
- name: Install Playwright Browsers
58+
run: npx playwright@1.57.0 install --with-deps
59+
5760
- name: Run headless unit test
58-
run: npm run test
61+
run: npm run test -- --reporters=default
5962

6063
- name: Run headless e2e test
6164
run: npm run e2e

0 commit comments

Comments
 (0)