Use proper branch name for CI #59
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: | |
- '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 |