Skip to content

point back to main #247

point back to main

point back to main #247

Workflow file for this run

# name: Self check
on: [push]
jobs:
check:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
babashka-version: [1.1.172, 1.3.189]
steps:
- name: Setup Babashka
id: setup-babashka-1
uses: turtlequeue/setup-babashka@main
with:
babashka-version: ${{ matrix.babashka-version }}
- name: Check if bb runs fine
run: bb --version
- name: Setup Babashka from cache
id: setup-babashka-2
uses: turtlequeue/setup-babashka@main
with:
babashka-version: ${{ matrix.babashka-version }}
fail-on-cache-miss: true
- name: Check if bb runs fine from cache
run: bb --version
- name: Test Cache
run: |
if [ -z "${{ steps.setup-babashka-1.outputs.cache-hit }}" ]; then
echo "Cache-hit output not set in first run. Failing the job."
exit 1
elif [ "${{ steps.setup-babashka-2.outputs.cache-hit }}" != "true" ]; then
echo "Cache not used in the second run. Failing the job."
exit 1
fi
shell: bash