forked from RustCrypto/elliptic-curves
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.github/workflows: re-enable codecov (RustCrypto#87)
- Loading branch information
Showing
1 changed file
with
46 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |