Skip to content

Commit 7273147

Browse files
authored
ci: use joshka/github-workflows (#10)
https://github.com/joshka/github-workflows
1 parent 67d210f commit 7273147

File tree

4 files changed

+36
-47
lines changed

4 files changed

+36
-47
lines changed

.github/workflows/check.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Check
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
check:
11+
permissions:
12+
checks: write
13+
uses: joshka/github-workflows/.github/workflows/rust-check.yml@main
14+
with:
15+
msrv: 1.76.0 # this is optional defaults to 1.56.0

.github/workflows/ci.yml

-30
This file was deleted.

.github/workflows/release-plz.yml

+8-17
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,20 @@
1-
name: Release-plz
2-
# see https://marcoieni.github.io/release-plz/github/index.html#example-release-pr-and-release
3-
# for more information
1+
name: Release
42

53
permissions:
64
pull-requests: write
75
contents: write
86

97
on:
8+
workflow_dispatch:
109
push:
1110
branches:
1211
- main
1312

1413
jobs:
1514
release-plz:
16-
name: Release-plz
17-
runs-on: ubuntu-latest
18-
steps:
19-
- name: Checkout repository
20-
uses: actions/checkout@v4
21-
with:
22-
fetch-depth: 0
23-
- name: Install Rust toolchain (stable)
24-
uses: dtolnay/rust-toolchain@stable
25-
- name: Run release-plz
26-
uses: MarcoIeni/[email protected]
27-
env:
28-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
15+
uses: joshka/github-workflows/.github/workflows/rust-release-plz.yml@main
16+
permissions:
17+
pull-requests: write
18+
contents: write
19+
secrets:
20+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

.github/workflows/test.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
uses: joshka/github-workflows/.github/workflows/rust-test.yml@main
12+
secrets:
13+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)