diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 69d4418f0..f50092bea 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -15,7 +15,7 @@ env: jobs: coverage: - runs-on: ubuntu-latest + runs-on: self-hosted steps: - uses: actions/checkout@v3 - name: Read rust-toolchain file @@ -24,18 +24,21 @@ jobs: - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ steps.rust-toolchain.outputs.toolchain }} - - uses: Swatinem/rust-cache@v2 - run: rustup component add llvm-tools-preview - - name: Redis in GitHub Actions - uses: supercharge/redis-github-action@1.7.0 - with: - redis-version: 6 - name: Install grcov uses: actions-rs/install@v0.1 with: crate: grcov version: latest use-tool-cache: true + - name: clean + run: | + cargo clean + rm -rf ./target/debug/deps/gluesql* + rm *.profraw && rm **/*.profraw + cd storages/csv-storage && rm -rf ./tmp && cd ../.. + cd storages/json-storage && rm -rf ./tmp && cd ../.. + redis-cli flushall - name: build env: RUSTFLAGS: -Cinstrument-coverage