diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3786cad..e34aa45 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,6 +26,8 @@ jobs: with: node-version: '16' + - uses: Swatinem/rust-cache@v1 + - name: Clippy run: cargo clippy --all --all-targets -- -D clippy::all @@ -37,6 +39,14 @@ jobs: RUSTFLAGS: -D warnings run: cargo test --all --all-targets --all-features --locked + - name: Cache node_modules (windows) + if: matrix.os == 'windows-latest' + uses: actions/cache@v2 + with: + path: '**/node_modules' + key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }} + restore-keys: ${{ runner.os }}-node-modules- + - name: Test (windows) if: matrix.os == 'windows-latest' shell: bash diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index c71e465..f76fc7a 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -21,12 +21,6 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Cache cargo binaries (grcov, cargo-binutils) - uses: actions/cache@v1 - with: - path: ~/.cargo/bin - key: ${{ runner.os }}-cargo-bin-grcov-cargo-binutils - - uses: actions-rs/toolchain@v1 with: toolchain: nightly-2021-07-29 @@ -34,6 +28,8 @@ jobs: profile: minimal components: llvm-tools-preview + - uses: Swatinem/rust-cache@v1 + - name: Install grcov and cargo-binutils env: RUSTFLAGS: ""