Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 18 additions & 16 deletions .github/workflows/test-e2e-blackbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
env:
RUSTUP_TOOLCHAIN: stable
on:
push:
branches:
- master
pull_request:
branches: [master]
paths-ignore:
Expand All @@ -15,46 +18,44 @@

jobs:
test:
name: e2e-blackbox
runs-on: ubuntu-latest
container:
image: ghcr.io/gitbutlerapp/ci-base-image:latest

Check failure

Code scanning / zizmor

unpinned image references Error test

unpinned image references
env:
CARGO_TERM_COLOR: always
steps:
- uses: actions/checkout@v5
with:
persist-credentials: false
if: ${{ github.event_name != 'workflow_dispatch' }}
name: Checkout
- uses: actions/checkout@v5
name: Checkout (specific commit from manual dispatch)
if: ${{ github.event_name == 'workflow_dispatch' }}
with:
persist-credentials: false
ref: ${{ github.event.inputs.sha }}
- name: Install Tauri OS dependencies
run: |
sudo scripts/install-tauri-debian-dependencies.sh
sudo apt install webkit2gtk-driver ffmpeg xvfb
- name: Setup rust-toolchain stable
id: rust-toolchain
uses: dtolnay/rust-toolchain@stable
- uses: actions/cache@v4
# TODO: put these into the docker image
- name: Install Webdriver dependencies
run: apt update && apt install -y webkit2gtk-driver ffmpeg xvfb
if: ${{ github.ref != 'refs/heads/master' }}
- name: Rust Cache
uses: Swatinem/[email protected]

Check failure

Code scanning / zizmor

unpinned action reference Error test

unpinned action reference
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: cargo-${{ steps.rust-toolchain.outputs.cachekey }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: cargo-
shared-key: e2e-blackbox-rust-binaries
save-if: ${{ github.ref == 'refs/heads/master' }}
- name: Setup node environment
uses: ./.github/actions/init-env-node
if: ${{ github.ref != 'refs/heads/master' }}
- name: Build CLI
run: cargo build -p gitbutler-cli
- name: Build SvelteKit
run: pnpm build:desktop -- --mode development
- name: Build Tauri
run: pnpm build:test
- name: Install tauri-driver
if: ${{ github.ref != 'refs/heads/master' }}
run: |
if [ ! -e "$HOME/.cargo/bin/tauri-driver" ]; then
cargo install tauri-driver
Expand All @@ -63,6 +64,7 @@
# 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
if: ${{ github.ref != 'refs/heads/master' }}
run: xvfb-run pnpm test:e2e:blackbox

- uses: actions/upload-artifact@v4
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/test-e2e-playwright.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: E2E Tests Playwright
on:
push:
branches:
- master
pull_request:
branches: [master]
workflow_dispatch:
Expand Down Expand Up @@ -44,9 +47,12 @@ jobs:
echo BUT_TESTING=$PWD/target/debug/but-testing >> $GITHUB_ENV
- name: Setup node environment
uses: ./.github/actions/init-env-node
if: ${{ github.ref != 'refs/heads/master' }}
- id: get_playwright_version
uses: eviden-actions/get-playwright-version@v1
if: ${{ github.ref != 'refs/heads/master' }}
- name: Cache playwright binaries
if: ${{ github.ref != 'refs/heads/master' }}
uses: actions/cache@v4
id: playwright-cache
with:
Expand All @@ -66,8 +72,10 @@ jobs:
run: cargo build -p but-testing
- name: Build SvelteKit
run: pnpm build:desktop
if: ${{ github.ref != 'refs/heads/master' }}
- name: Run Playwright tests
run: pnpm exec turbo run test:e2e:playwright
if: ${{ github.ref != 'refs/heads/master' }}
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
Expand Down
Loading