generated from 9renpoto/.59
-
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.
* 🤔 * 🤔 * feat: replace actions-rs * chore: use dtolnay rust-toolchain * chore: fmt * chore: collect coverage * chore: thinking about * chore: thinking about * chore: thinking about * chore: thinking about * fix: skip collect coverage
- Loading branch information
Showing
2 changed files
with
30 additions
and
25 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 |
---|---|---|
|
@@ -11,31 +11,36 @@ env: | |
|
||
jobs: | ||
test: | ||
needs: check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: dtolnay/rust-toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
- name: Run cargo-tarpaulin | ||
uses: actions-rs/[email protected] | ||
with: | ||
out-type: Lcov | ||
- name: Coveralls upload | ||
uses: coverallsapp/[email protected] | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
path-to-lcov: lcov.info | ||
clippy_check: | ||
components: llvm-tools-preview | ||
- uses: Swatinem/rust-cache@v2 | ||
- run: cargo test --workspace --all-features --all-targets | ||
# - run: cargo install grcov | ||
# - run: grcov . --binary-path ./target/debug/ -s . --keep-only 'src/*' | ||
# - name: Coveralls upload | ||
# uses: coverallsapp/[email protected] | ||
# with: | ||
# github-token: ${{ secrets.GITHUB_TOKEN }} | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: dtolnay/rust-toolchain@v1 | ||
with: | ||
toolchain: stable | ||
components: rustfmt, clippy | ||
- uses: actions-rs/[email protected] | ||
- name: rustup toolchain install | ||
uses: dtolnay/rust-toolchain@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
args: --all-features | ||
toolchain: stable | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Check | ||
run: cargo clippy --workspace --all-targets --all-features -- -D warnings | ||
- name: rustfmt | ||
run: cargo fmt --all --check |
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