Skip to content

Release

Release #1829

Workflow file for this run

name: 🚀 Test
on: [pull_request]
jobs:
test:
name: Test
runs-on: ubuntu-latest
env:
CI: true
steps:
- uses: actions/checkout@v3
# Python 3.11 和 node-gyp 有兼容问题, 导致无法安装依赖
# https://github.com/slint-ui/slint/commit/a9c48e33502fdebc36c5aa2f4f516c2218424679#diff-944291df2c9c06359d37cc8833d182d705c9e8c3108e7cfe132d61a06e9133dd
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- uses: pnpm/action-setup@v4
with:
version: 9
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Install Playwright browsers
run: npx playwright install --with-deps
- name: Build
run: pnpm build
- name: Lint
run: pnpm lint
- name: Test
run: pnpm test
- name: Upload snapshots to GitHub Actions Artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: snapshots
path: |
__tests__/integration/snapshots/**/*/*-actual.png
retention-days: 1