Skip to content

Commit

Permalink
chore(deps): update dependencies (#26)
Browse files Browse the repository at this point in the history
* chore(deps): update dependencies
* feat: add release-plz to the github ci pipeline
* fix: clippy lints
* fix: build remove the -Z option
  • Loading branch information
sassman authored Jul 15, 2024
1 parent e290370 commit d2f65a9
Show file tree
Hide file tree
Showing 5 changed files with 318 additions and 228 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
name: Build
on:
push:
branches: [ '*' ]
branches: ["*"]
paths-ignore:
- "**/docs/**"
- "**.md"
pull_request:
branches: [ main ]
branches: [main]
workflow_call:

jobs:
Expand All @@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
version: [ 'macos-latest', 'ubuntu-latest', 'windows-latest']
version: ["macos-latest", "ubuntu-latest", "windows-latest"]
runs-on: ${{ matrix.version }}
steps:
- uses: actions/checkout@v2
Expand All @@ -40,7 +40,7 @@ jobs:
strategy:
fail-fast: false
matrix:
version: [ 'macos-latest', 'ubuntu-latest', 'windows-latest']
version: ["macos-latest", "ubuntu-latest", "windows-latest"]
cargo-cmd:
- fmt --all -- --check
- clippy --all-targets --all-features -- -D warnings
Expand All @@ -63,8 +63,8 @@ jobs:
strategy:
fail-fast: false
matrix:
version: [ 'macos-latest', 'ubuntu-latest', 'windows-latest']
rust: [ nightly, stable ]
version: ["macos-latest", "ubuntu-latest", "windows-latest"]
rust: [nightly, stable]
runs-on: ${{ matrix.version }}
continue-on-error: ${{ matrix.rust == 'nightly' }}
environment: build
Expand All @@ -78,7 +78,7 @@ jobs:
profile: minimal
- uses: Swatinem/rust-cache@v1
- name: cargo test
run: cargo test --all --locked -- -Z unstable-options
run: cargo test --all --locked --all-features

audit:
name: security audit
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/release-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
## See https://release-plz.ieni.dev/docs/github/quickstart

name: Release PR

permissions:
pull-requests: write
contents: write

on:
push:
branches:
- main
workflow_dispatch:

jobs:
release-plz:
name: Release-plz
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run release-plz pr
uses: MarcoIeni/[email protected]
with:
command: release-pr
config: release-plz.toml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit d2f65a9

Please sign in to comment.