diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index fe8cebc..95168e7 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -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 @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b5967a9..8753d68 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,6 @@ permissions: pull-requests: write contents: write on: - workflow_dispatch: push: branches: [main] concurrency: @@ -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: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9f814ad..8dd5e03 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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