mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-20 08:01:46 +03:00
47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
name: E2E Tests
|
|
on:
|
|
schedule:
|
|
- cron: "0 6 * * *"
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
test:
|
|
name: Run WebdriverIO Tests
|
|
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
|
|
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
|
|
run: xvfb-run pnpm test:e2e
|