-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to Clojure CLI & GitHub Actions (#117)
* Switch to Clojure CLI & GitHub Actions * Fix linter errors * Empty commit to re-trigger CI * Add codecov.yml * Fix build artifact name * Remove Slack badge
- Loading branch information
Showing
40 changed files
with
656 additions
and
447 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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,3 @@ | ||
[codespell] | ||
ignore-words-list = CLOS,clos,befores,edn,juxt | ||
skip = *#,./target/* |
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,12 +1,15 @@ | ||
((nil . ((indent-tabs-mode . nil) ; always use spaces for tabs | ||
((nil . ((indent-tabs-mode . nil) ; always use spaces for tabs | ||
(require-final-newline . t))) ; add final newline on save | ||
(clojure-mode . (;; prefer keeping source width about ~118, GitHub seems to cut off stuff at either 119 or 120 and | ||
;; it's nicer to look at code in GH when you don't have to scroll back and forth | ||
(fill-column . 118) | ||
(clojure-docstring-fill-column . 118) | ||
(eval . (define-clojure-indent | ||
(p.types/defprotocol+ '(1 (:defn))) | ||
(p.types/definterface+ '(1 (:defn))) | ||
(p.types/def-abstract-type '(1 (:defn))) | ||
(p.types/deftype+ '(2 nil nil (:defn))) | ||
(p.types/defrecord+ '(2 nil nil (:defn)))))))) | ||
(clojure-mode . ((cider-preferred-build-tool . clojure-cli) | ||
(cider-clojure-cli-aliases . "dev") | ||
(fill-column . 120) | ||
(clojure-docstring-fill-column . 120) | ||
(eval . (put 'p/defprotocol+ 'clojure-doc-string-elt 2)) | ||
(eval . (put 'p.types/defprotocol+ 'clojure-doc-string-elt 2)) | ||
(eval . (put-clojure-indent 'p.types/defprotocol+ '(1 (:defn)))) | ||
(eval . (put-clojure-indent 'p.types/definterface+ '(1 (:defn)))) | ||
(eval . (put-clojure-indent 'p.types/def-abstract-type '(1 (:defn)))) | ||
;; (eval . (put-clojure-indent 'p.types/deftype+ '(2 nil nil (:defn)))) | ||
;; (eval . (put-clojure-indent 'p.types/defrecord+ '(2 nil nil (:defn)))) | ||
(eval . (put-clojure-indent 'with-meta '(:form))) | ||
(eval . (put-clojure-indent 'with-bindings* '(:form)))))) |
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,22 +1,19 @@ | ||
Thanks for contributing to Methodical. Before open a pull request, please take a moment to: | ||
|
||
- [ ] Ensure the PR follows the [Clojure Style Guide](https://github.com/bbatsov/clojure-style-guide). | ||
- [ ] Tests and linters pass. You can run them locally as follows: | ||
- [ ] Tests and linters pass. You can run all of the tests and linters locally with | ||
|
||
lein test && lein lint | ||
./scripts/lint-and-test.sh | ||
|
||
CircleCI will also run these same tests against your PR. | ||
GitHub Actions will also run these same tests against your PR. | ||
- [ ] Make sure you've included new tests for any new features or bugfixes. | ||
- [ ] New features are documented, or documentation is updated appropriately for any changed features. | ||
- [ ] Carefully review your own changes and revert any superfluous ones. (A good example would be moving words in the | ||
Markdown documentation to different lines in a way that wouldn't change how the rendered page itself would | ||
appear. These sorts of changes make a PR bigger than it needs to be, and, thus, harder to review.) | ||
|
||
Of course, indentation and typo fixes are not covered by this rule and are always appreciated. | ||
Of course, indentation and typo fixes are not covered by this rule and are always appreciated. | ||
- [ ] Include a detailed explanation of what changes you're making and why you've made them. This will help me | ||
understand what's going on while we review it. | ||
|
||
Once you've done all that, open a PR! Make sure to at-mention @camsaul in the PR description. Otherwise I won't get an | ||
email about it and might not get review it right away. :) | ||
|
||
Thanks for your contribution! | ||
Once you've done all that, open a PR! Thanks for your contribution! |
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,39 @@ | ||
name: Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-20.04 | ||
environment: Deployment | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Prepare JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 17 | ||
distribution: 'temurin' | ||
- name: Setup Clojure | ||
uses: DeLaGuardo/setup-clojure@9.5 | ||
with: | ||
cli: 1.11.1.1155 | ||
- name: Restore cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.m2/repository | ||
~/.gitlibs | ||
~/.deps.clj | ||
key: deploy | ||
- name: Build JAR | ||
run: clojure -T:build build | ||
env: | ||
GITHUB_SHA: ${{ env.GITHUB_SHA }} | ||
- name: Deploy to Clojars | ||
run: clojure -T:build deploy | ||
env: | ||
CLOJARS_USERNAME: ${{ secrets.CLOJARS_USERNAME }} | ||
CLOJARS_PASSWORD: ${{ secrets.CLOJARS_PASSWORD }} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.