diff --git a/.github/workflows/cargo-test.yml b/.github/workflows/cargo-test.yml index fcc81c6..89e8834 100644 --- a/.github/workflows/cargo-test.yml +++ b/.github/workflows/cargo-test.yml @@ -18,6 +18,13 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: '0' + - name: Cache Cargo dependencies + uses: actions/cache@v2 + with: + path: ~/.cargo + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + ${{ runner.os }}-cargo- - name: Build run: cargo build --verbose - name: Run tests @@ -35,13 +42,13 @@ jobs: cp ./target/debug/gossiphs ./gossiphs cd tree-sitter - ../gossiphs interactive --dry + time ../gossiphs interactive --dry cd .. cd typescript-eslint - ../gossiphs interactive --dry + time ../gossiphs interactive --dry cd .. cd gin - ../gossiphs interactive --dry + time ../gossiphs interactive --dry cd ..