Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

publish code coverage on release build #578

Merged
merged 6 commits into from
Jul 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 26 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Release

on: push
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'

jobs:
build:
Expand All @@ -9,12 +12,32 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Extract release info from CHANGELOG
if: startsWith(github.ref, 'refs/tags/')
run: grep $(date +%Y-%m-%d) -A 250 CHANGELOG.md | tail -n +3 | sed '1,/===================/!d' | head -n -3 > release.txt
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
body_path: release.txt
code-coverage:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Run cargo-tarpaulin
uses: actions-rs/tarpaulin@v0.1
with:
version: '0.18.0'
out-type: Lcov
timeout: 600
args: '--all -e tests -- --test-threads 1'
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./lcov.info
2 changes: 1 addition & 1 deletion kube/src/client/auth/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ fn token_from_gcp_provider(provider: &AuthProviderConfig) -> Result<ProviderToke

if !output.status.success() {
return Err(ConfigError::AuthExecRun {
cmd: format! {"{} {}", cmd, params},
cmd: format!("{} {}", cmd, params),
status: output.status,
out: output,
}
Expand Down