Skip to content

Commit

Permalink
ci: update and fix ci to use cargo test
Browse files Browse the repository at this point in the history
  • Loading branch information
open-schnick committed Sep 3, 2024
1 parent d69e420 commit 5186082
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 22 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
with:
toolchain: ${{ matrix.toolchain }}
components: rustfmt
- name: cargo +${{ matrix.toolchain }} fmt
run: cargo +${{ matrix.toolchain }} fmt --all
- name: cargo +${{ matrix.toolchain }} fmt --check
run: cargo +${{ matrix.toolchain }} fmt --check
clippy:
runs-on: ubuntu-latest
name: ${{ matrix.toolchain }} / clippy
Expand All @@ -46,7 +46,18 @@ jobs:
toolchain: ${{ matrix.toolchain }}
components: clippy
- name: cargo clippy
uses: actions-rs/clippy-check@v1
uses: giraffate/clippy-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all --all-features --all-targets
reporter: "github-pr-check"
github_token: ${{ secrets.GITHUB_TOKEN }}
docs:
runs-on: ubuntu-latest
name: stable / doc
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install stable
uses: dtolnay/rust-toolchain@stable
- name: cargo doc
run: cargo doc
17 changes: 5 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ permissions:
pull-requests: write
contents: write
on:
workflow_dispatch:
push:
branches: [main]
concurrency:
Expand All @@ -11,21 +10,15 @@ concurrency:
name: release
jobs:
create-release-pr:
name: Release-plz
runs-on: ubuntu-latest
name: ${{ matrix.toolchain }} / release-plz
strategy:
matrix:
toolchain: [stable]
steps:
- uses: actions/checkout@v4
- name: Checkout repository
uses: actions/checkout@v4
with:
# fetch-depth: 0 is needed to clone all the git history,
# which is necessary to determine the next version and build the changelog
fetch-depth: 0
- name: Install ${{ matrix.toolchain }}
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run release-plz
uses: MarcoIeni/release-plz-action@v0.5
env:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,5 @@ jobs:
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- uses: taiki-e/install-action@cargo-nextest
- name: cargo nextest run --all
run: cargo nextest run --all
- name: cargo test --doc
run: cargo test --doc
- name: cargo test
run: cargo test --all --all-features

0 comments on commit 5186082

Please sign in to comment.