mirror of
https://github.com/laurent22/joplin.git
synced 2026-04-26 08:10:37 -05:00
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
name: Joplin UI tests
|
|
on: [push, pull_request]
|
|
permissions:
|
|
contents: read
|
|
jobs:
|
|
Main:
|
|
# Don't run on forks
|
|
if: github.repository == 'laurent22/joplin'
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-22.04, windows-2025]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Setup build environment
|
|
uses: ./.github/workflows/shared/setup-build-environment
|
|
- name: Build
|
|
run: yarn install
|
|
env:
|
|
# The onenote-converter package uses Rust, which isn't installed on all CI
|
|
# runners. Since the onenote-converter doesn't have UI tests, it can be excluded
|
|
# from build:
|
|
SKIP_ONENOTE_CONVERTER_BUILD: 1
|
|
- name: Run UI tests
|
|
shell: bash
|
|
run: |
|
|
cd ${GITHUB_WORKSPACE}/packages/app-desktop/
|
|
bash ./integration-tests/run-ci.sh
|
|
# See https://playwright.dev/docs/ci-intro#setting-up-github-actions
|
|
- uses: actions/upload-artifact@v4
|
|
if: ${{ !cancelled() }}
|
|
with:
|
|
name: playwright-report-${{ matrix.os }}
|
|
path: packages/app-desktop/playwright-report/
|
|
retention-days: 7
|