Skip to content

Commit e694077

Browse files
committed
Refactor workflows to split work
1 parent 6a727f4 commit e694077

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
- pull_request
44
- push
55
jobs:
6-
stable:
6+
main:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v3
@@ -13,8 +13,22 @@ jobs:
1313
components: rustfmt, clippy
1414
- run: cargo fmt --check && cargo clippy --examples --tests --benches
1515
- run: cargo test
16+
coverage:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v3
20+
- uses: actions-rs/toolchain@v1
21+
with:
22+
toolchain: stable
1623
- run: cargo install cargo-tarpaulin && cargo tarpaulin --out Xml
1724
- uses: codecov/codecov-action@v3
25+
site:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v3
29+
- uses: actions-rs/toolchain@v1
30+
with:
31+
toolchain: stable
1832
- run: cargo doc --no-deps --release
1933
- 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
2034
- name: Deploy

0 commit comments

Comments
 (0)