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: