Update GitHub Actions and switch to Leiningen build system #347
Workflow file for this run
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
name: Clojure CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
lein: | |
name: Leiningen | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Prepare Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '8' | |
- name: Install Clojure tools | |
uses: DeLaGuardo/[email protected] | |
with: | |
cli: 'latest' | |
lein: 'latest' | |
bb: 'latest' | |
cljfmt: 'latest' | |
clj-kondo: 'latest' | |
- name: Unit tests | |
run: lein test | |
- name: Codestyle - cljfmt | |
run: bb lint:check | |
- name: Linter - eastwood | |
run: bb lint:eastwood | |
- name: Linter - kondo | |
run: bb lint:kondo | |
deps-edn-and-bb: | |
name: deps.edn with bb | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Prepare Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '8' | |
- name: Install Clojure tools | |
uses: DeLaGuardo/[email protected] | |
with: | |
cli: 'latest' | |
bb: 'latest' | |
cljfmt: 'latest' | |
clj-kondo: 'latest' | |
- name: Codestyle | |
run: bb lint | |
- name: Unit tests | |
run: bb test |