-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (38 loc) · 1.11 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: CI
on:
push:
pull_request:
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest]
node_version: [20]
fail-fast: false
name: 'Test on node-${{ matrix.node_version }}, ${{ matrix.os }}'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.1.3
- name: Set Node.js version to ${{ matrix.node_version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
# TODO/eventually: try using the cache again
# The cache breaks playwright https://github.com/vikejs/vike-vue/pull/119
# cache: "pnpm"
- run: pnpm install
- run: pnpm exec playwright install chromium
- run: pnpm run build
- run: pnpm run test
- name: Upload screenshots
if: ${{ failure() }}
uses: actions/upload-artifact@v3
with:
name: 'screenshots'
path: |
**/test-screenshot-expect.png
**/test-screenshot-actual.png
**/test-screenshot-differ.png