Skip to content

Fix typo in clj-kondo version #10

Fix typo in clj-kondo version

Fix typo in clj-kondo version #10

Workflow file for this run

name: ci-cd
on:
push:
paths-ignore:
- "README.md"
- "CONTRIBUTING.md"
- "CHANGELOG.md"
- "LICENSE"
- ".gitignore"
jobs:
build:
name: Build
runs-on: ubuntu-20.04
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
LEIN_ROOT: "true"
CLOJARS_USERNAME: ${{ secrets.CLOJARS_USERNAME }}
CLOJARS_PASSWORD: ${{ secrets.CLOJARS_PASSWORD }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Install Clojure Tools
uses: DeLaGuardo/setup-clojure@10.1
with:
lein: 2.12.2
clj-kondo: 2024.08.29
- name: Create rbac DB
env:
PGPASSWORD: postgres
run: psql -h localhost -c 'create database rbac;' -U postgres
- name: Check formatting
run: lein cljfmt check
- name: Lint
run: clj-kondo --lint src --lint test && lein eastwood
- name: Test
env:
JDBC_DATABASE_URL: jdbc:postgresql://localhost:5432/rbac?user=postgres&password=postgres&reWriteBatchedInserts=true
run: lein test :all
- name: Deploy Jar to Clojars
if: contains(github.ref, 'refs/tags/')
run: lein deploy