dev: Practicalli reloaded aliases #1
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: "Quality Checks" | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
check-code-quality: | |
name: "Check Code Quality" | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "π Job automatically triggered by ${{ github.event_name }}" | |
- run: echo "π§ Job running on ${{ runner.os }} server" | |
- run: echo "π Using ${{ github.ref }} branch from ${{ github.repository }} repository" | |
- name: "Checkout code" | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- run: echo "π ${{ github.repository }} repository was cloned to the runner." | |
- name: "Prepare Java runtime" | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "temurin" | |
java-version: "21" | |
- name: "Cache Clojure Dependencies" | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.m2/repository | |
~/.gitlibs | |
key: clojure-deps-${{ hashFiles('**/deps.edn') }} | |
restore-keys: clojure-deps- | |
- name: "Install tools" | |
uses: DeLaGuardo/[email protected] | |
with: | |
cli: 1.11.1.1435 # Clojure CLI | |
cljstyle: 0.15.0 | |
clj-kondo: 2023.03.17 | |
- name: "Kaocha test runner" | |
run: clojure -X:test/env:test/run | |
- name: "Lint Clojure" | |
run: clj-kondo --lint deps.edn --config '{:output {:pattern "::{{level}} file={{filename}},line={{row}},col={{col}}::{{message}}"}}' | |
- name: "Check Clojure Style" | |
run: cljstyle check --report | |
- run: echo "π¨ style and format of Clojure code checked" | |
- run: echo "π Job status is ${{ job.status }}." |