Skip to content

[bot] synced file(s) with Wall-Brew-Co/rebroadcast #933

[bot] synced file(s) with Wall-Brew-Co/rebroadcast

[bot] synced file(s) with Wall-Brew-Co/rebroadcast #933

Workflow file for this run

# Execute Clojure tests using Leiningen
name: Clojure Tests
on: ["workflow_dispatch", "pull_request"]
jobs:
test:
# Cancel any runs in progress for the same workflow and PR
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
id: checkout
uses: actions/[email protected]
- name: Setup Java
id: install-java
uses: actions/[email protected]
with:
distribution: 'adopt'
java-version: '21'
# This should match system.properties
- name: Install Leiningen
id: install-leiningen
uses: DeLaGuardo/[email protected]
with:
lein: 'latest'
clj-kondo: 'latest'
cljstyle: 'latest'
- name: Cache Maven Dependencies
id: cache-maven
uses: actions/cache@v4
env:
cache-name: cache-maven
with:
path: ~/.m2
key: ${{ runner.os }}-clj-${{ hashFiles('**/project.clj') }}
restore-keys: |
${{ runner.os }}-clj
- name: Echo Leiningen Version
id: lein-version
run: lein -v
- name: Install Clojure Dependencies
id: install-deps
run: lein deps
- name: Run All Tests
id: run-tests
run: lein test
# This file was automatically copied and populated by rebroadcast
# Do not edit this file directly, instead modify the source at https://github.com/Wall-Brew-Co/rebroadcast/blob/master/sources/github-actions/workflows/clojure.yml