Add compatibility testing #5
Workflow file for this run
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: Backwards Compatibility Tests | ||
on: ["workflow_dispatch", "pull_request"] | ||
jobs: | ||
compatibility_test: | ||
strategy: matrix | ||
clojure_version: ['1.10.0', '1.11.0', '1.12.0'] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/[email protected] | ||
- name: Cache maven dependencies | ||
uses: actions/cache@v4 | ||
env: | ||
cache-name: cache-maven | ||
with: | ||
path: ~/.m2 | ||
save-always: true | ||
key: ${{ runner.os }}-clj-${{ hashFiles('**/project.clj') }} | ||
restore-keys: | | ||
${{ runner.os }}-clj | ||
- name: Install Clojure Dependencies | ||
run: lein deps | ||
- name: Override Clojure Version | ||
run: lein change :dependencies:org.clojure/clojure set '"${{ matrix.clojure_version }}"' | ||
- name: Run all 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 |