From 34586075f086bea1304d97b1394bfdb7255022d0 Mon Sep 17 00:00:00 2001 From: Taehoon Moon Date: Fri, 24 Nov 2023 21:09:49 -1000 Subject: [PATCH] Update coverage action to run on self-hosted runner (#1443) * Update coverage action to run on self-hosted runner * Remove redis action from coverage.yml * Remove rust-cache action from coverage.yml * Add clean step to coverage.yml * Clean up redis on coverage.yml clean step * Remove profraw files in coverage action clean step --- .github/workflows/coverage.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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