gitbutler/.github/workflows/test-e2e.yml

47 lines
1.3 KiB
YAML
Raw Normal View History

name: E2E Tests
2024-05-02 15:55:41 +03:00
on:
schedule:
- cron: "0 6 * * *"
workflow_dispatch:
2024-05-02 15:55:41 +03:00
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
name: Run WebdriverIO Tests
2024-05-02 15:55:41 +03:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Tauri OS dependencies
run: |
sudo apt update && sudo apt install -y \
libgtk-3-dev \
libayatana-appindicator3-dev \
libwebkit2gtk-4.0-dev \
webkit2gtk-driver \
xvfb
- name: Setup rust-toolchain stable
uses: dtolnay/rust-toolchain@stable
- name: Setup node latest
uses: actions/setup-node@v4
2024-05-05 21:10:18 +03:00
with:
node-version: latest
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Install dependencies
shell: bash
run: pnpm install
- name: Build SvelteKit
run: pnpm build:desktop -- --mode development
- name: Build Tauri
run: pnpm build:test
- name: Install tauri-driver
run: cargo install tauri-driver@0.1.3
# Run it through `xvfb-run` to have a fake display server which allows our
# application to run headless without any changes to the code
- name: WebdriverIO
2024-08-02 15:17:32 +03:00
run: xvfb-run pnpm test:e2e