Skip to content

test & ci: bump deps (#322) #439

test & ci: bump deps (#322)

test & ci: bump deps (#322) #439

Workflow file for this run

name: Libs Test
on:
# allow this workflow to be called from other workflows, namely: publish
workflow_call:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
enumerate-libs:
runs-on: ubuntu-latest
outputs:
libs: ${{ steps.set-libs.outputs.libs }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: ./.github/workflows/shared-setup
- id: set-libs
name: Set libs var for matrix
## call bb script directly instead of as task to avoid task status output
run: echo "libs=$(bb script/test_libs.clj list --format=json)" >> $GITHUB_OUTPUT
libs-test:
needs: enumerate-libs
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include: ${{ fromJSON(needs.enumerate-libs.outputs.libs) }}
name: ${{ matrix.lib-name }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup
uses: ./.github/workflows/shared-setup
with:
clj-cache-prefix: clj-libs-deps-${{ matrix.lib-name }}
clj-cache-hash-files: "'script/test_libs.clj','deps.edn','bb.edn'"
## Lein version > 2.10.0 is causing refactor-nrepl to fail, so explicitly install a version that works
## instead of using lein bundled with github actions image.
## Upcoming 2.11.2 might fix, can optionally revisit in the future.
- name: Install Lein
uses: DeLaGuardo/[email protected]
with:
lein: 2.10.0
- name: Install Planck
uses: ./.github/workflows/setup-planck
if: contains( matrix.requires, 'planck' )
- name: Run Libs Tests
run: bb test-libs run ${{ matrix.lib-name }}