minor #625
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |