Skip to content

Merge pull request #36 from AdGoji/fix/35-refund-spec #70

Merge pull request #36 from AdGoji/fix/35-refund-spec

Merge pull request #36 from AdGoji/fix/35-refund-spec #70

Workflow file for this run

name: Code checks
on:
push:
branches:
- 'master'
pull_request:
types:
- 'ready_for_review'
- 'synchronize'
- 'opened'
- 'reopened'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test-clj:
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft }}
env:
MOLLIE_API_KEY: ${{ secrets.MOLLIE_API_KEY }}
MOLLIE_PARTNER_ID: ${{ secrets.MOLLIE_PARTNER_ID }}
MOLLIE_PROFILE_ID: ${{ secrets.MOLLIE_PROFILE_ID }}
steps:
- uses: actions/checkout@v4
- name: Prepare java
uses: actions/[email protected]
with:
distribution: 'temurin'
java-version: '20'
- name: Install Clojure tools
uses: DeLaGuardo/setup-clojure@master
with:
cli: 'latest'
bb: 'latest'
- name: Cache clojure dependencies
uses: actions/cache@v4
with:
path: |
~/.m2/repository
~/.gitlibs
~/.deps.clj
key: cljdeps-${{ hashFiles('deps.edn', 'bb.edn') }}
restore-keys: cljdeps-
- run: bb test
lint:
runs-on: ubuntu-latest
steps:
- uses: DeLaGuardo/setup-clojure@master
with:
clj-kondo: 'latest'
bb: 'latest'
- uses: actions/checkout@v4
- run: bb lint
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: DeLaGuardo/setup-clojure@master
with:
cljfmt: 'latest'
bb: 'latest'
- run: bb format:check