Skip to content

Commit

Permalink
ci: use joshka/github-workflows (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshka authored Mar 12, 2024
1 parent 67d210f commit 7273147
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 47 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Check

on:
push:
branches:
- main
pull_request:

jobs:
check:
permissions:
checks: write
uses: joshka/github-workflows/.github/workflows/rust-check.yml@main
with:
msrv: 1.76.0 # this is optional defaults to 1.56.0
30 changes: 0 additions & 30 deletions .github/workflows/ci.yml

This file was deleted.

25 changes: 8 additions & 17 deletions .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,20 @@
name: Release-plz
# see https://marcoieni.github.io/release-plz/github/index.html#example-release-pr-and-release
# for more information
name: Release

permissions:
pull-requests: write
contents: write

on:
workflow_dispatch:
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 (stable)
uses: dtolnay/rust-toolchain@stable
- name: Run release-plz
uses: MarcoIeni/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
uses: joshka/github-workflows/.github/workflows/rust-release-plz.yml@main
permissions:
pull-requests: write
contents: write
secrets:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
13 changes: 13 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Test

on:
push:
branches:
- main
pull_request:

jobs:
test:
uses: joshka/github-workflows/.github/workflows/rust-test.yml@main
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 7273147

Please sign in to comment.