Skip to content

Commit

Permalink
Update coverage action to run on self-hosted runner (gluesql#1443)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
panarch committed Nov 25, 2023
1 parent 58b4d97 commit 3458607
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 3458607

Please sign in to comment.