From b4f8798a3adb071d761dbeac9efa3e885c6eeeb2 Mon Sep 17 00:00:00 2001 From: Reilly Wood <26268125+rgwood@users.noreply.github.com> Date: Thu, 28 Apr 2022 15:57:26 -0700 Subject: [PATCH] rust-cache fix (#5359) * Enable CI on merges to main * Re-enable rust-cache for virtualenv tests --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8d692e284..a5b56c922 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,8 @@ -on: [pull_request] +on: + pull_request: + push: # Run CI on the main branch after every merge. This is important to fill the GitHub Actions cache in a way that pull requests can see it + branches: + - main name: continuous-integration @@ -86,6 +90,10 @@ jobs: toolchain: ${{ matrix.rust }} override: true + - uses: Swatinem/rust-cache@v1 + with: + key: "1" # increment this to bust the cache if needed + - name: Install Nushell uses: actions-rs/cargo@v1 with: