From fac087723a85d667a7a232222d10ca00a38906c2 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Thu, 3 Feb 2022 22:57:02 +0000 Subject: [PATCH] fix ci --- .github/workflows/.coverage.yml | 42 +++++++++++++++++++++++++++++++++ .github/workflows/coverage.yml | 40 ------------------------------- 2 files changed, 42 insertions(+), 40 deletions(-) create mode 100644 .github/workflows/.coverage.yml delete mode 100644 .github/workflows/coverage.yml diff --git a/.github/workflows/.coverage.yml b/.github/workflows/.coverage.yml new file mode 100644 index 000000000..758e98fb3 --- /dev/null +++ b/.github/workflows/.coverage.yml @@ -0,0 +1,42 @@ +# disabled because `cargo tarpaulin` currently segfaults + +name: Coverage + +on: + push: + branches: [master] + +jobs: + coverage: + runs-on: ubuntu-latest + + services: + redis: + image: redis:5.0.7 + ports: + - 6379:6379 + options: --entrypoint redis-server + + steps: + - uses: actions/checkout@v2 + + - name: Install stable + uses: actions-rs/toolchain@v1 + with: + toolchain: stable-x86_64-unknown-linux-gnu + profile: minimal + override: true + + - name: Generate Cargo.lock + uses: actions-rs/cargo@v1 + with: { command: generate-lockfile } + - name: Cache Dependencies + uses: Swatinem/rust-cache@v1.2.0 + + - name: Generate coverage file + run: | + cargo install cargo-tarpaulin --vers "^0.13" + cargo tarpaulin --workspace --out Xml --verbose + - name: Upload to Codecov + uses: codecov/codecov-action@v1 + with: { file: cobertura.xml } diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml deleted file mode 100644 index a6c248b66..000000000 --- a/.github/workflows/coverage.yml +++ /dev/null @@ -1,40 +0,0 @@ -# name: Coverage - -# on: -# push: -# branches: [master] - -# jobs: -# coverage: -# runs-on: ubuntu-latest - -# services: -# redis: -# image: redis:5.0.7 -# ports: -# - 6379:6379 -# options: --entrypoint redis-server - -# steps: -# - uses: actions/checkout@v2 - -# - name: Install stable -# uses: actions-rs/toolchain@v1 -# with: -# toolchain: stable-x86_64-unknown-linux-gnu -# profile: minimal -# override: true - -# - name: Generate Cargo.lock -# uses: actions-rs/cargo@v1 -# with: { command: generate-lockfile } -# - name: Cache Dependencies -# uses: Swatinem/rust-cache@v1.2.0 - -# - name: Generate coverage file -# run: | -# cargo install cargo-tarpaulin --vers "^0.13" -# cargo tarpaulin --workspace --out Xml --verbose -# - name: Upload to Codecov -# uses: codecov/codecov-action@v1 -# with: { file: cobertura.xml }