Skip to content

Commit 071f059

Browse files
chore: setup test ci (sveltejs#215)
* chore: setup ci * pnpm * pnpm * playwright --------- Co-authored-by: Rich Harris <[email protected]>
1 parent 5cfafc6 commit 071f059

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

.github/workflows/node.js.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
env:
10+
# we call `pnpm playwright install` instead
11+
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'
12+
13+
jobs:
14+
build:
15+
16+
runs-on: ubuntu-latest
17+
18+
strategy:
19+
matrix:
20+
node-version: [18.x]
21+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
22+
23+
steps:
24+
- uses: actions/checkout@v3
25+
- uses: pnpm/[email protected]
26+
- name: Use Node.js ${{ matrix.node-version }}
27+
uses: actions/setup-node@v3
28+
with:
29+
node-version: ${{ matrix.node-version }}
30+
cache: 'pnpm'
31+
- run: pnpm install --frozen-lockfile
32+
- run: pnpm playwright install chromium
33+
- run: pnpm test

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,6 @@
4343
"prism-svelte": "^0.5.0",
4444
"prismjs": "^1.29.0",
4545
"ws": "^8.12.1"
46-
}
46+
},
47+
"packageManager": "[email protected]"
4748
}

0 commit comments

Comments
 (0)