From ef43de6dad3bc7742970eedf5ee00a789455712a Mon Sep 17 00:00:00 2001 From: Joshy Orndorff Date: Wed, 21 Oct 2020 08:34:00 -0400 Subject: [PATCH] Run CI on pushes and PRs; Fix restore-key (#70) * run CI on pushes to master as well as PRs * fix restore path https://docs.github.com/en/free-pro-team@latest/actions/guides/caching-dependencies-to-speed-up-workflows#matching-a-cache-key --- .github/workflows/release.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ecdf29a82cc72..43629e6275c71 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,12 @@ name: Release -on: ['push'] +on: + pull_request: + branches: + - master + push: + branches: + - master env: WASM_BUILD_TOOLCHAIN: nightly-2020-07-20 @@ -67,7 +73,7 @@ jobs: node/standalone/target key: ${{ runner.OS }}-build-${{ env.WASM_BUILD_TOOLCHAIN }}-${{ hashFiles('**/Cargo.lock') }} restore-keys: | - ${{ runner.OS }}-build--${{ env.WASM_BUILD_TOOLCHAIN }} + ${{ runner.OS }}-build-${{ env.WASM_BUILD_TOOLCHAIN }} - uses: actions-rs/toolchain@v1 with: