From 0e433b975a5d8c28ae5c0cbd86d3b19e03146a83 Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdx@users.noreply.github.com> Date: Sat, 16 Mar 2024 20:14:45 -0500 Subject: [PATCH] ci(test): cache mise installed tools --- .github/workflows/test.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 340ba57ac..cd01ed753 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,6 @@ jobs: tool: nextest,just,cargo-deny,cargo-msrv,cargo-machete,usage-cli - name: Install direnv run: sudo apt-get update; sudo apt-get install direnv - - run: cargo binstall usage-cli - run: cargo nextest run --all-features env: RUST_BACKTRACE: "1" @@ -46,6 +45,13 @@ jobs: - run: ./scripts/test-standalone.sh - run: cargo build --all-features - run: ./target/debug/mise settings set experimental true + - uses: actions/cache@v4 + with: + path: | + ~/.local/share/mise/installs + ~/.local/share/mise/plugins + key: v0-mise-tools-${{ hashFiles('.mise.toml') }} + restore-keys: v0-mise-tools - run: ./target/debug/mise install - run: ./target/debug/mise run render - run: ./target/debug/mise run lint-fix