Skip to content

Commit 812d456

Browse files
committed
Make E2E blackbox run faster with improved caching
1 parent 4a3ac10 commit 812d456

File tree

1 file changed

+10
-16
lines changed

1 file changed

+10
-16
lines changed

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

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
test:
1818
name: e2e-blackbox
1919
runs-on: ubuntu-latest
20+
container:
21+
image: ghcr.io/gitbutlerapp/ci-base-image:latest
2022
env:
2123
CARGO_TERM_COLOR: always
2224
steps:
@@ -29,23 +31,15 @@ jobs:
2931
with:
3032
persist-credentials: false
3133
ref: ${{ github.event.inputs.sha }}
32-
- name: Install Tauri OS dependencies
33-
run: |
34-
sudo scripts/install-tauri-debian-dependencies.sh
35-
sudo apt install webkit2gtk-driver ffmpeg xvfb
36-
- name: Setup rust-toolchain stable
37-
id: rust-toolchain
38-
uses: dtolnay/rust-toolchain@stable
39-
- uses: actions/cache@v4
34+
# TODO: put these into the docker image
35+
- name: Install Webdriver dependencies
36+
run: apt install -y webkit2gtk-driver ffmpeg xvfb
37+
- name: Rust Cache
38+
uses: Swatinem/[email protected]
4039
with:
41-
path: |
42-
~/.cargo/bin/
43-
~/.cargo/registry/index/
44-
~/.cargo/registry/cache/
45-
~/.cargo/git/db/
46-
target/
47-
key: cargo-${{ steps.rust-toolchain.outputs.cachekey }}-${{ hashFiles('**/Cargo.lock') }}
48-
restore-keys: cargo-
40+
shared-key: e2e-blackbox-rust-binaries
41+
# TODO: enable only on master
42+
# save-if: ${{ github.ref == 'refs/heads/master' }}
4943
- name: Setup node environment
5044
uses: ./.github/actions/init-env-node
5145
- name: Build CLI

0 commit comments

Comments
 (0)