Skip to content

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

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

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

Workflow file for this run

# Executes ClojureScript tests using Leiningen / Karma
name: Clojurescript Tests
on: ["workflow_dispatch", "pull_request"]
permissions:
contents: read
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: Echo Trigger
id: echo-trigger
run: echo "Job triggered by ${{ github.event_name }}"
- name: Echo Runner OS
id: echo-runner-os
run: echo "Job running on ${{ runner.os }} server"
- name: Echo Git Ref
id: echo-git-ref
run: echo "Using ${{ github.ref }} branch from ${{ github.repository }} repository"
# https://github.com/actions/checkout
- name: Checkout Repository
id: checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
# https://github.com/actions/setup-java
- name: Setup Java
id: install-java
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
distribution: 'temurin'
java-version: '21'
# This should match system.properties
# https://github.com/DeLaGuardo/setup-clojure
- name: Install Leiningen
id: install-leiningen
uses: DeLaGuardo/setup-clojure@4c7a6f613e5089821bb3bb2a33a3ee115578580d # 13.6.1
with:
# renovate: datasource=github-releases depName=technomancy/leiningen
lein: '2.12.0'
# renovate: datasource=github-releases depName=clj-kondo/clj-kondo versioning=loose
clj-kondo: '2026.05.25'
# renovate: datasource=github-releases depName=greglook/cljstyle
cljstyle: '0.17.642'
# https://github.com/actions/cache
- name: Cache Maven Dependencies
id: cache-maven
uses: actions/cache@2c8a9bd7457de244a408f35966fab2fb45fda9c8 # v6
env:
cache-name: cache-maven
with:
path: ~/.m2
key: ${{ runner.os }}-clj-${{ hashFiles('**/project.clj') }}
restore-keys: |
${{ runner.os }}-clj
# https://github.com/actions/cache
- name: Cache npm dependencies
id: cache-npm
uses: actions/cache@2c8a9bd7457de244a408f35966fab2fb45fda9c8 # v6
env:
cache-name: cache-npm
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node
- name: Install Clojure/ClojureScript Dependencies
id: install-clojure-deps
run: lein deps
- name: Echo Leiningen Version
id: lein-version
run: lein -v
- name: Install node.js Dependencies
id: install-node-deps
run: npm install
- name: Build Clojurescript
id: build-cljs
run: lein cljsbuild once test
- name: Run All Tests
id: run-tests
run: lein doo once
- name: Echo Status
id: echo-status
run: echo "Job status is ${{ job.status }}."
# 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/clojurescript.yml