diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-10-14 12:28:58 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-10-14 12:28:58 +0200 |
commit | e694077ed2616cba263b336b942d2a53212dc593 (patch) | |
tree | 733e7a7dbea5c30e277fda12bc8462cbd94b4688 | |
parent | 6a727f4d67bef60f4aed4d3cbccd42226a338843 (diff) | |
download | markdown-rs-e694077ed2616cba263b336b942d2a53212dc593.tar.gz markdown-rs-e694077ed2616cba263b336b942d2a53212dc593.tar.bz2 markdown-rs-e694077ed2616cba263b336b942d2a53212dc593.zip |
Refactor workflows to split work
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/main.yml | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d87d27a..55f1aee 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,7 +3,7 @@ on: - pull_request - push jobs: - stable: + main: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -13,8 +13,22 @@ jobs: components: rustfmt, clippy - run: cargo fmt --check && cargo clippy --examples --tests --benches - run: cargo test + coverage: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable - run: cargo install cargo-tarpaulin && cargo tarpaulin --out Xml - uses: codecov/codecov-action@v3 + site: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable - run: cargo doc --no-deps --release - run: echo '<!doctypehtml><html lang=en><meta charset=utf8><title>Redirecting…</title><link rel=canonical href=https://wooorm.com/markdown-rs/markdown><script>location = "https://wooorm.com/markdown-rs/markdown"</script><meta http-equiv=refresh content=0;url=https://wooorm.com/markdown-rs/markdown><meta name=robots content=noindex><body><h1>Redirecting…</h1><p><a href=https://wooorm.com/markdown-rs/markdown>Click here if you are not redirected.</a>' > target/doc/index.html - name: Deploy |