forked from bitwiseops/obsidian-kobo-highlights-import
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a workflow that checks if all pre-commit checks pass or not. This includes pre-commit and conform.
- Loading branch information
Showing
3 changed files
with
58 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
policies: | ||
- type: commit | ||
spec: | ||
header: | ||
length: 89 | ||
imperative: true | ||
case: lower | ||
invalidLastCharacters: . | ||
body: | ||
required: true | ||
dco: false | ||
gpg: | ||
required: true | ||
spellcheck: | ||
locale: US | ||
maximumOfOneCommit: false | ||
conventional: | ||
types: | ||
- feat | ||
- fix | ||
- chore | ||
- deps | ||
- docs | ||
descriptionLength: 72 | ||
- type: commit | ||
spec: | ||
header: | ||
length: 89 | ||
imperative: true | ||
case: lower | ||
invalidLastCharacters: . | ||
body: | ||
required: true | ||
dco: false | ||
gpg: | ||
required: true | ||
spellcheck: | ||
locale: US | ||
maximumOfOneCommit: false | ||
conventional: | ||
types: | ||
- feat | ||
- fix | ||
- chore | ||
- deps | ||
- docs | ||
- ci | ||
descriptionLength: 72 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: "pre-commit" | ||
on: | ||
push: | ||
branches: ["master"] | ||
pull_request: | ||
branches: ["master"] | ||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
env: | ||
USER: runner | ||
steps: | ||
- name: install packages | ||
run: sudo apt-get update && sudo apt-get install -y curl xz-utils git | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
- uses: cachix/install-nix-action@v26 | ||
- uses: DeterminateSystems/magic-nix-cache-action@v3 | ||
- name: Install devenv.sh | ||
run: nix profile install tarball+https://install.devenv.sh/latest | ||
- name: Pre Commit | ||
shell: devenv shell bash -e {0} | ||
run: pre-commit run -s HEAD~1 -o HEAD | ||
conform: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
- name: Conform Action | ||
uses: siderolabs/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters