Skip to content

Commit b9fcc5b

Browse files
committed
fix: ci test with playwright
1 parent 6cbaa13 commit b9fcc5b

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

.github/workflows/macos.yml

Lines changed: 16 additions & 5 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
5254
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 install --with-deps
61+
62+
- name: Run headless unit test
63+
run: npm run test
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/windows.yml

Lines changed: 1 addition & 1 deletion
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

0 commit comments

Comments
 (0)