-
Notifications
You must be signed in to change notification settings - Fork 717
Playing with depot #10641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Playing with depot #10641
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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: | ||
|
|
@@ -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: | ||
|
|
@@ -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: | ||
|
|
@@ -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: | ||
|
|
@@ -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] | ||
| - uses: depot/setup-action@v1 | ||
Check failureCode scanning / zizmor unpinned action reference Error
unpinned action reference
|
||
| - uses: actions/checkout@v5 | ||
| with: | ||
| persist-credentials: false | ||
|
|
@@ -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 failureCode scanning / zizmor unpinned action reference Error
unpinned action reference
|
||
| - uses: depot/setup-action@v1 | ||
Check failureCode scanning / zizmor unpinned action reference Error
unpinned action reference
|
||
| - uses: actions/checkout@v5 | ||
| with: | ||
| persist-credentials: false | ||
|
|
@@ -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 failureCode scanning / zizmor unpinned action reference Error
unpinned action reference
|
||
| - uses: depot/setup-action@v1 | ||
Check failureCode scanning / zizmor unpinned action reference Error
unpinned action reference
|
||
| - uses: actions/checkout@v5 | ||
| with: | ||
| persist-credentials: false | ||
|
|
@@ -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 | ||
|
|
||
|
|
@@ -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: | ||
|
|
@@ -179,6 +185,8 @@ | |
| run: | ||
| shell: bash | ||
| steps: | ||
| - uses: mozilla-actions/[email protected] | ||
Check failureCode scanning / zizmor unpinned action reference Error
unpinned action reference
|
||
| - uses: depot/setup-action@v1 | ||
Check failureCode scanning / zizmor unpinned action reference Error
unpinned action reference
|
||
| - uses: actions/checkout@v5 | ||
| with: | ||
| persist-credentials: false | ||
|
|
@@ -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 failureCode scanning / zizmor unpinned action reference Error
unpinned action reference
|
||
| - uses: depot/setup-action@v1 | ||
Check failureCode scanning / zizmor unpinned action reference Error
unpinned action reference
|
||
| - uses: actions/checkout@v5 | ||
| with: | ||
| persist-credentials: false | ||
|
|
@@ -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() | ||
|
|
@@ -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 failureCode scanning / zizmor unpinned action reference Error
unpinned action reference
|
||
| - uses: depot/setup-action@v1 | ||
Check failureCode 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: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 failureCode scanning / zizmor unpinned action reference Error test
unpinned action reference
|
||
| - uses: depot/setup-action@v1 | ||
Check failureCode scanning / zizmor unpinned action reference Error test
unpinned action reference
|
||
| - uses: actions/checkout@v5 | ||
| with: | ||
| persist-credentials: false | ||
|
|
@@ -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 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 | ||
|
|
@@ -27,6 +27,8 @@ | |
| VITE_BUTLER_HOST: 'localhost' | ||
| VITE_BUILD_TARGET: 'web' | ||
| steps: | ||
| - uses: mozilla-actions/[email protected] | ||
Check failureCode scanning / zizmor unpinned action reference Error test
unpinned action reference
|
||
| - uses: depot/setup-action@v1 | ||
Check failureCode scanning / zizmor unpinned action reference Error test
unpinned action reference
|
||
| - uses: actions/checkout@v5 | ||
| with: | ||
| persist-credentials: false | ||
|
|
@@ -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' }} | ||
|
|
||
Check failure
Code scanning / zizmor
unpinned action reference Error