Skip to content

Commit

Permalink
fix: urls in badges and separate actions in different workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
tokcum committed Jun 17, 2023
1 parent 01742f4 commit 35c1b96
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 29 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/cargo-tarpaulin.yml
@@ -0,0 +1,29 @@
name: workflow-cargo-tarpaulin
run-name: cargo tarpaulin run by ${{ github.actor }}
on: [push]
env:
CARGO_TERM_COLOR: always
jobs:
cargo-tarpaulin:
runs-on: ubuntu-latest
steps:
- name: checkout-repo
uses: actions/checkout@v3

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

- name: check-coverage
uses: actions-rs/tarpaulin@v0.1
with:
version: 0.22.0
args: --ignore-tests --out Xml --fail-under 100

- name: report-coverage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./cobertura.xml
24 changes: 0 additions & 24 deletions .github/workflows/cargo-test.yml
Expand Up @@ -46,27 +46,3 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features -- -D warnings

cargo-tarpaulin:
runs-on: ubuntu-latest
steps:
- name: checkout-repo
uses: actions/checkout@v3

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

- name: check-coverage
uses: actions-rs/tarpaulin@v0.1
with:
version: latest
args: --ignore-tests --out Xml --fail-under 100

- name: report-coverage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./cobertura.xml
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -35,22 +35,22 @@
[crates.io Latest]: https://img.shields.io/crates/v/kodiak-sets?label=latest&logo=docs.rs&style=flat-square
[crates]: https://crates.io/crates/kodiak-sets

[crates.io License]: https://img.shields.io/crates/l/kodiak-sets?color=007ec6&style=flat-square
[GitHub License]: https://img.shields.io/github/license/polarlabs/kodiak-sets?color=007ec6&style=flat-square
[crates.io License]: https://img.shields.io/crates/l/kodiak-sets?logo=docs.rs&color=007ec6&style=flat-square
[GitHub License]: https://img.shields.io/github/license/polarlabs/kodiak-sets?logo=github&color=007ec6&style=flat-square
[license-mit]: https://choosealicense.com/licenses/mit/
[license-apache]: https://choosealicense.com/licenses/apache-2.0/

[Static docs coverage]: https://img.shields.io/badge/docs%20coverage-100%25-success.svg?logo=rust&logoColor=ffffff&style=flat-square
[docs.rs]: https://img.shields.io/docsrs/kodiak-sets?logo=docs.rs&style=flat-square
[docs]: https://docs.rs/kodiak-sets

[GitHub Build Status]: https://img.shields.io/github/workflow/status/polarlabs/kodiak-sets/workflow-cargo-test?logo=github&label=tests&style=flat-square
[GitHub Build Status]: https://img.shields.io/github/actions/workflow/status/polarlabs/kodiak-sets/cargo-test.yml?branch=main&logo=github&label=tests&style=flat-square
[github-actions-cargo-test]: https://github.com/polarlabs/kodiak-sets/actions/workflows/cargo-test.yml

[GitHub Security Schedule]: https://img.shields.io/github/workflow/status/polarlabs/kodiak-sets/workflow-cargo-audit-on-schedule?logo=clockify&logoColor=ffffff&label=security%20audit&style=flat-square
[GitHub Security Schedule]: https://img.shields.io/github/actions/workflow/status/polarlabs/kodiak-sets/cargo-audit-on-schedule.yml?branch=main&logo=clockify&logoColor=ffffff&label=security%20audit%20(scheduled%20daily)&style=flat-square
[github-actions-cargo-audit-on-schedule]: https://github.com/polarlabs/kodiak-sets/actions/workflows/cargo-audit-on-schedule.yml

[GitHub Security Push]: https://img.shields.io/github/workflow/status/polarlabs/kodiak-sets/workflow-cargo-audit-on-push?logo=github&label=security%20audit&style=flat-square
[GitHub Security Push]: https://img.shields.io/github/actions/workflow/status/polarlabs/kodiak-sets/cargo-audit-on-push.yml?branch=main&logo=github&label=security%20audit%20(on%20push)&style=flat-square
[github-actions-cargo-audit-on-push]: https://github.com/polarlabs/kodiak-sets/actions/workflows/cargo-audit-on-push.yml

[GitHub Top Language]: https://img.shields.io/github/languages/top/polarlabs/kodiak-sets?color=dea584&logo=rust&style=flat-square
Expand Down

0 comments on commit 35c1b96

Please sign in to comment.