Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release-plz workflow #107

Merged
merged 6 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: install rust toolchain
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: rustfmt

- name: cargo fmt
run: cargo +nightly fmt --all -- --check

Expand All @@ -30,26 +31,25 @@ jobs:
- uses: actions/checkout@v3

- name: install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: clippy
run: rustup toolchain install nightly-2024-06-10

- name: Install Clippy
run: rustup component add --toolchain nightly-2024-06-10 clippy

- name: cargo clippy
run: cargo +nightly clippy --all
run: cargo clippy --all

udeps:
name: udeps
runs-on: macos-latest
steps:
- uses: actions/checkout@v3

- name: install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: rustfmt
run: rustup toolchain install nightly-2024-06-10

- name: install udeps
run: cargo install --git https://github.com/est31/cargo-udeps --locked

- name: cargo udeps
run: cargo +nightly udeps
run: cargo udeps
28 changes: 28 additions & 0 deletions .github/workflows/release-plz.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release-plz

permissions:
pull-requests: write
contents: write

on:
push:
branches:
- main

jobs:
release-plz:
name: Release-plz
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run release-plz
uses: MarcoIeni/[email protected]
with:
command: release-pr
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 2 additions & 8 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,8 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true

- name: Install dependencies
run: cargo fetch
- name: Install Rust toolchain
run: rustup toolchain install nightly-2024-06-10

- name: Run tests
run: cargo test --all
Loading
Loading