release v5.1.0 #70
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: pull-request | |
on: | |
pull_request: | |
branches: [ main ] | |
paths: | |
- 'src/**' | |
- 'test/**' | |
- 'deps.edn' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
tests: | |
strategy: | |
matrix: | |
namespace: [ unit ] | |
operating-system: [ubuntu-latest] | |
jdk-version: ['11', '17', '21'] | |
runs-on: ${{ matrix.operating-system }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Prepare java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.jdk-version }} | |
- name: Install clojure tools-deps | |
uses: DeLaGuardo/setup-clojure@master | |
with: | |
tools-deps: 1.11.1.1435 | |
- name: Cache Maven packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-tests-${{ hashFiles('**/deps.edn') }} | |
restore-keys: ${{ runner.os }}-m2-pr | |
- name: Execute ${{ matrix.namespace }} Test | |
run: clojure -M:test ${{ matrix.namespace }} | |
check-lint: | |
strategy: | |
matrix: | |
operating-system: [ubuntu-latest] | |
runs-on: ${{ matrix.operating-system }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Prepare java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Install clojure tools-deps | |
uses: DeLaGuardo/setup-clojure@master | |
with: | |
tools-deps: 1.11.1.1435 | |
- name: Cache Maven packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-tests-${{ hashFiles('**/deps.edn') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Execute lint checks | |
run: | | |
clojure -M:clojure-lsp format --dry | |
clojure -M:clojure-lsp clean-ns --dry | |
clojure -M:clojure-lsp diagnostics | |
security: | |
strategy: | |
matrix: | |
operating-system: [ubuntu-latest] | |
runs-on: ${{ matrix.operating-system }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: clj-holmes (Clojure) | |
uses: clj-holmes/clj-holmes-action@main | |
with: | |
output-type: 'stdout' | |
fail-on-result: 'true' |