Add experimental unit tests job to GitHub Actions #351
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
tests: | |
name: Unit tests | |
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' | |
- name: Unit tests | |
run: lein test | |
tests-experimental: | |
name: Unit tests (experimental) | |
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' | |
- name: Unit tests (bb + test-runner) | |
run: bb test | |
linters: | |
name: Linters | |
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' | |
clj-kondo: 'latest' | |
- name: Eastwood | |
run: bb lint:eastwood | |
- name: Kondo | |
run: bb lint:kondo | |
codestyle: | |
name: Codestyle | |
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' | |
- name: cljfmt | |
run: bb lint:check |