Skip to content
Closed
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
50 changes: 31 additions & 19 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
prettier:
needs: changes
if: ${{ needs.changes.outputs.node == 'false' && needs.changes.outputs.docs == 'true'}}
runs-on: ubuntu-latest
runs-on: depot-ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
Expand All @@ -60,7 +60,7 @@
lint-node:
needs: changes
if: ${{ needs.changes.outputs.node == 'true' }}
runs-on: ubuntu-latest
runs-on: depot-ubuntu-latest-4
steps:
- uses: actions/checkout@v5
with:
Expand All @@ -71,7 +71,7 @@
check-node:
needs: changes
if: ${{ needs.changes.outputs.node == 'true' }}
runs-on: ubuntu-latest
runs-on: depot-ubuntu-latest-4
steps:
- uses: actions/checkout@v5
with:
Expand All @@ -82,7 +82,7 @@
unittest-node:
needs: changes
if: ${{ needs.changes.outputs.node == 'true' }}
runs-on: ubuntu-latest
runs-on: depot-ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
Expand All @@ -93,12 +93,14 @@
rust-lint:
needs: changes
if: ${{ needs.changes.outputs.rust == 'true' }}
runs-on: ubuntu-latest
runs-on: depot-ubuntu-latest-8
container:
image: ghcr.io/gitbutlerapp/ci-base-image:latest
env:
CARGO_TERM_COLOR: always
steps:
- uses: mozilla-actions/[email protected]

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
- uses: depot/setup-action@v1

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
- uses: actions/checkout@v5
with:
persist-credentials: false
Expand All @@ -107,20 +109,22 @@
with:
shared-key: rust-lint
save-if: ${{ github.ref == 'refs/heads/master' }}
- run: cargo fmt --check --all
- run: cargo check --workspace --all-targets
- run: depot cargo fmt --check --all
- run: depot cargo check --workspace --all-targets
- name: cargo clippy
run: |
rustup component add clippy
cargo clippy --workspace --all-targets -- -D warnings
depot cargo clippy --workspace --all-targets -- -D warnings
rust-but-binary-no-tauri:
needs: changes
if: ${{ needs.changes.outputs.rust == 'true' }}
runs-on: ubuntu-latest
runs-on: depot-ubuntu-latest-8
env:
CARGO_TERM_COLOR: always
steps:
- uses: mozilla-actions/[email protected]

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
- uses: depot/setup-action@v1

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
- uses: actions/checkout@v5
with:
persist-credentials: false
Expand All @@ -132,17 +136,19 @@
- run: |
sudo apt update
sudo apt install -y libdbus-1-dev pkg-config
- run: cargo build -p but
- run: depot cargo build -p but

rust-docs:
needs: changes
if: ${{ needs.changes.outputs.rust == 'true' }}
runs-on: ubuntu-latest
runs-on: depot-ubuntu-latest
container:
image: ghcr.io/gitbutlerapp/ci-base-image:latest
env:
CARGO_TERM_COLOR: always
steps:
- uses: mozilla-actions/[email protected]

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
- uses: depot/setup-action@v1

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
- uses: actions/checkout@v5
with:
persist-credentials: false
Expand All @@ -151,7 +157,7 @@
with:
shared-key: rust-docs
save-if: ${{ github.ref == 'refs/heads/master' }}
- run: cargo doc --no-deps --all-features --document-private-items -p gitbutler-git
- run: depot cargo doc --no-deps --all-features --document-private-items -p gitbutler-git
env:
RUSTDOCFLAGS: -Dwarnings

Expand All @@ -170,7 +176,7 @@
rust-test:
needs: changes
if: ${{ needs.changes.outputs.rust == 'true' }}
runs-on: ubuntu-latest
runs-on: depot-ubuntu-latest-8
container:
image: ghcr.io/gitbutlerapp/ci-base-image:latest
env:
Expand All @@ -179,6 +185,8 @@
run:
shell: bash
steps:
- uses: mozilla-actions/[email protected]

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
- uses: depot/setup-action@v1

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
- uses: actions/checkout@v5
with:
persist-credentials: false
Expand All @@ -188,25 +196,27 @@
shared-key: rust-testing
save-if: ${{ github.ref == 'refs/heads/master' }}
- run: |
cargo test --workspace
depot cargo test --workspace
env:
GITBUTLER_TESTS_NO_CLEANUP: '1'
name: cargo test
- run: |
set -e
cargo check -p gitbutler-tauri --no-default-features
depot cargo check -p gitbutler-tauri --no-default-features
for feature in devtools custom-protocol error-context; do
cargo check -p gitbutler-tauri --no-default-features --features "$feature"
depot cargo check -p gitbutler-tauri --no-default-features --features "$feature"
done
name: Check Tauri App
check-rust-windows:
needs: changes
runs-on: windows-latest
runs-on: depot-windows-latest-8
if: ${{ needs.changes.outputs.rust == 'true' }}
env:
CARGO_TERM_COLOR: always
steps:
- uses: mozilla-actions/[email protected]

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
- uses: depot/setup-action@v1

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
- uses: actions/checkout@v5
with:
persist-credentials: false
Expand All @@ -216,7 +226,7 @@
shared-key: rust-testing
save-if: ${{ github.ref == 'refs/heads/master' }}
- name: 'cargo check'
run: cargo check --workspace --all-targets --features windows
run: depot cargo check --workspace --all-targets --features windows

check-rust:
if: always()
Expand All @@ -226,10 +236,12 @@
- rust-test
- rust-lint
- rust-but-binary-no-tauri
runs-on: ubuntu-latest
runs-on: depot-ubuntu-latest-8
env:
CARGO_TERM_COLOR: always
steps:
- uses: mozilla-actions/[email protected]

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
- uses: depot/setup-action@v1

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/test-e2e-blackbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@
jobs:
test:
name: e2e-blackbox
runs-on: ubuntu-latest
runs-on: depot-ubuntu-latest-8
container:
image: ghcr.io/gitbutlerapp/ci-base-image:latest
env:
CARGO_TERM_COLOR: always
steps:
- uses: mozilla-actions/[email protected]

Check failure

Code scanning / zizmor

unpinned action reference Error test

unpinned action reference
- uses: depot/setup-action@v1

Check failure

Code scanning / zizmor

unpinned action reference Error test

unpinned action reference
- uses: actions/checkout@v5
with:
persist-credentials: false
Expand All @@ -48,7 +50,7 @@
- name: Setup node environment
uses: ./.github/actions/init-env-node
- name: Build CLI
run: cargo build -p gitbutler-cli
run: depot cargo build -p gitbutler-cli
- name: Build SvelteKit
run: pnpm build:desktop -- --mode development
- name: Build Tauri
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/test-e2e-playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
jobs:
test:
name: e2e-playwright
runs-on: ubuntu-latest
runs-on: depot-ubuntu-latest-8
container:
image: ghcr.io/gitbutlerapp/ci-base-image:latest
timeout-minutes: 60
Expand All @@ -27,6 +27,8 @@
VITE_BUTLER_HOST: 'localhost'
VITE_BUILD_TARGET: 'web'
steps:
- uses: mozilla-actions/[email protected]

Check failure

Code scanning / zizmor

unpinned action reference Error test

unpinned action reference
- uses: depot/setup-action@v1

Check failure

Code scanning / zizmor

unpinned action reference Error test

unpinned action reference
- uses: actions/checkout@v5
with:
persist-credentials: false
Expand Down Expand Up @@ -65,11 +67,11 @@
if: ${{ steps.playwright-cache.outputs.cache-hit == 'true' && github.ref != 'refs/heads/master' }}
name: Install missing deps after cache hit
- name: Build gitbutler-git
run: cargo build -p gitbutler-git
run: depot cargo build -p gitbutler-git
- name: Build but-server
run: cargo build -p but-server
run: depot cargo build -p but-server
- name: Build but-testing
run: cargo build -p but-testing
run: depot cargo build -p but-testing
- name: Build SvelteKit
run: pnpm build:desktop
if: ${{ github.ref != 'refs/heads/master' }}
Expand Down
Loading