Skip to content

Commit

Permalink
.github/workflows: re-enable codecov (RustCrypto#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcieri authored Jul 24, 2020
1 parent 62af947 commit 2ca8635
Showing 1 changed file with 46 additions and 47 deletions.
93 changes: 46 additions & 47 deletions .github/workflows/workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,50 +40,49 @@ jobs:
command: fmt
args: --all -- --check

# TODO(tarcieri): investigate why codecov is failing
# codecov:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repository
# uses: actions/checkout@v2
#
# - name: Cache cargo registry
# uses: actions/cache@v1
# with:
# path: ~/.cargo/registry
# key: ${{ runner.os }}-cargo-registry-${{ hashFiles('Cargo.lock') }}
#
# - name: Cache cargo index
# uses: actions/cache@v1
# with:
# path: ~/.cargo/git
# key: ${{ runner.os }}-cargo-index-${{ hashFiles('Cargo.lock') }}
#
# - name: Cache cargo build
# uses: actions/cache@v1
# with:
# path: target
# key: ${{ runner.os }}-coverage-cargo-build-target-${{ hashFiles('Cargo.lock') }}
#
# - name: Install stable toolchain
# uses: actions-rs/toolchain@v1
# with:
# toolchain: stable
# override: true
#
# - name: Run cargo-tarpaulin
# uses: actions-rs/[email protected]
# env:
# CARGO_INCREMENTAL: 0
# with:
# version: 0.14.2
# args: --all -- --test-threads 1
#
# - name: Upload to codecov.io
# uses: codecov/[email protected]
#
# - name: Archive code coverage results
# uses: actions/upload-artifact@v1
# with:
# name: code-coverage-report
# path: cobertura.xml
codecov:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Cache cargo registry
uses: actions/cache@v1
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('Cargo.lock') }}

- name: Cache cargo index
uses: actions/cache@v1
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index-${{ hashFiles('Cargo.lock') }}

- name: Cache cargo build
uses: actions/cache@v1
with:
path: target
key: ${{ runner.os }}-coverage-cargo-build-target-${{ hashFiles('Cargo.lock') }}

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Run cargo-tarpaulin
uses: actions-rs/[email protected]
env:
CARGO_INCREMENTAL: 0
with:
version: 0.14.2
args: --all -- --test-threads 1

- name: Upload to codecov.io
uses: codecov/[email protected]

- name: Archive code coverage results
uses: actions/upload-artifact@v1
with:
name: code-coverage-report
path: cobertura.xml

0 comments on commit 2ca8635

Please sign in to comment.