Skip to content

Commit

Permalink
CI: use lpenz/ghworkflow-rust@v0.2 as the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lpenz committed Jul 24, 2022
1 parent 2071c1d commit 6ff55c6
Showing 1 changed file with 7 additions and 71 deletions.
78 changes: 7 additions & 71 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,74 +7,10 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: docker://lpenz/omnilint:0.4
# Rust actions from:
# https://github.com/actions-rs/meta/blob/master/recipes/quickstart.md
cargo-check-doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: check
- uses: actions-rs/cargo@v1
with:
command: doc
test-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: coverage
uses: docker://lpenz/ghaction-rust-coverage:0.2
- uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ${{ steps.coverage.outputs.report }}
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
publish-crate:
needs: [ omnilint, cargo-check-doc, test-coverage, rustfmt, clippy ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: version
uses: docker://lpenz/ghaction-version-gen:0.8.0
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: katyo/publish-crates@v1
if: steps.version.outputs.version_tagged != ''
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

rust:
uses: lpenz/ghworkflow-rust/.github/workflows/rust.yml@v0.2
with:
coveralls: true
secrets:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}

0 comments on commit 6ff55c6

Please sign in to comment.