Skip to content

Commit 441a358

Browse files
committed
initial commit
1 parent 0faf27d commit 441a358

File tree

88 files changed

+8941
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+8941
-5
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- main
6+
workflow_call:
7+
8+
jobs:
9+
rust_check:
10+
name: Rust check
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Install Rust Toolchain
17+
uses: dtolnay/rust-toolchain@master
18+
with:
19+
toolchain: stable
20+
components: rustfmt
21+
22+
- uses: davidB/rust-cargo-make@v1
23+
- uses: taiki-e/install-action@nextest
24+
25+
- name: Run cargo make check
26+
run: |
27+
cargo make run-checks
28+
29+
- name: Spell Check
30+
env:
31+
RUSTDOCFLAGS: "-Dwarnings"
32+
uses: crate-ci/typos@master
33+
34+
- name: Audit
35+
uses: actions-rust-lang/audit@v1
36+
with:
37+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/lint-pr.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Lint PR
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
- reopened
10+
11+
permissions:
12+
pull-requests: read
13+
14+
jobs:
15+
pr-check:
16+
name: Validate PR title
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
- name: Lint PR
22+
uses: amannn/action-semantic-pull-request@v5
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
with:
26+
wip: false # needs write access if enabled
27+
requireScope: false
28+
subjectPattern: ^(?![A-Z]).+$
29+
subjectPatternError: |
30+
The subject "{subject}" found in the pull request title "{title}"
31+
didn't match the configured pattern. Please ensure that the subject
32+
starts with a lowercase character.
33+
34+
ci:
35+
name: CI
36+
needs: pr-check
37+
uses: ./.github/workflows/ci.yml

.github/workflows/release-pr.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: ReleasePR
2+
3+
permissions:
4+
pull-requests: write
5+
contents: write
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
12+
jobs:
13+
release:
14+
runs-on: ubuntu-latest
15+
outputs:
16+
release_created: ${{ steps.release.outputs.release_created }}
17+
version: ${{ steps.release.outputs.version }}
18+
19+
permissions:
20+
contents: write
21+
pull-requests: write
22+
23+
steps:
24+
- name: Checkout Repository
25+
uses: actions/checkout@v4
26+
27+
- name: Release Please
28+
id: release
29+
uses: googleapis/release-please-action@v4
30+
env:
31+
ACTIONS_STEP_DEBUG: true
32+
with:
33+
token: ${{ secrets.RP_SECRET }}
34+
config-file: .release-config.json
35+
manifest-file: .release-manifest.json
36+
- name: Release Please Output
37+
run: |
38+
echo "release-please output:"
39+
echo "${OUTPUTS}"
40+
env:
41+
OUTPUTS: ${{ toJson(steps.release.outputs) }}
42+
43+
# docker:
44+
# name: Publish Docker
45+
# needs: release
46+
# if: ${{needs.release.outputs.release_created == 'true'}}
47+
# uses: ./.github/workflows/docker.yml
48+
# with:
49+
# version: ${{needs.release.outputs.version}}
50+
# secrets:
51+
# DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
52+
# DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

0 commit comments

Comments
 (0)