Skip to content

Commit cc64f31

Browse files
authored
chore(ci): cache Playwright browsers and fix Windows x2t path (#5)
1 parent c122018 commit cc64f31

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,18 @@ jobs:
7777
name: sdk-build
7878
path: editors/sdkjs
7979

80-
- name: Install Playwright browsers
80+
- name: Cache Playwright browsers
8181
if: matrix.os != 'ubuntu-latest'
82+
id: playwright-cache
83+
uses: actions/cache@v4
84+
with:
85+
path: |
86+
~/Library/Caches/ms-playwright
87+
~/AppData/Local/ms-playwright
88+
key: playwright-${{ runner.os }}-${{ hashFiles('bun.lock') }}
89+
90+
- name: Install Playwright browsers
91+
if: matrix.os != 'ubuntu-latest' && steps.playwright-cache.outputs.cache-hit != 'true'
8292
run: bunx playwright install chromium
8393

8494
- name: Cache converter

download-converter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ function cleanup() {
206206
}
207207

208208
async function main() {
209-
const x2tPath = path.join(CONVERTER_DIR, 'x2t');
209+
const x2tPath = path.join(CONVERTER_DIR, os.platform() === 'win32' ? 'x2t.exe' : 'x2t');
210210

211211
if (fs.existsSync(x2tPath)) {
212212
console.log('Converter already installed at', x2tPath);

0 commit comments

Comments
 (0)