-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(maint) update clj-parent, enable pr testing, linting
This updates clj-parent to 5.5.0, adds pr testing for the repo and adds clojure linting.
- Loading branch information
1 parent
7f23768
commit 76e1194
Showing
4 changed files
with
63 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{:linters {:refer-all {:exclude [clojure.test slingshot.test]}} | ||
:output {:linter-name true}} |
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,30 @@ | ||
name: Clojure Linting | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, edited, synchronize] | ||
paths: ['src/**','test/**','.clj-kondo/config.edn','project.clj','.github/**'] | ||
|
||
jobs: | ||
clojure-linting: | ||
name: Clojure Linting | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: setup java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 17 | ||
- name: checkout repo | ||
uses: actions/checkout@v2 | ||
- name: install clj-kondo (this is quite fast) | ||
run: | | ||
curl -sLO https://raw.githubusercontent.com/clj-kondo/clj-kondo/master/script/install-clj-kondo | ||
chmod +x install-clj-kondo | ||
./install-clj-kondo --dir . | ||
- name: kondo lint | ||
run: ./clj-kondo --lint src test | ||
- name: eastwood lint | ||
run: | | ||
java -version | ||
lein eastwood |
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,29 @@ | ||
name: PR Testing | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: [opened, reopened, edited, synchronize] | ||
paths: ['src/**','test/**','project.clj'] | ||
|
||
jobs: | ||
pr-testing: | ||
name: PR Testing | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
version: ['11', '17'] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout repo | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: setup java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: ${{ matrix.version }} | ||
- name: clojure tests | ||
run: lein test | ||
timeout-minutes: 30 |
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