-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Test with last 5 minor versions * Remove clojurescript runner * Add compatibility note
- Loading branch information
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Backwards Compatibility Tests | ||
|
||
on: ["workflow_dispatch", "pull_request"] | ||
|
||
jobs: | ||
compatibility_test: | ||
strategy: | ||
matrix: | ||
clojure_version: ['1.8.0', '1.9.0', '1.10.0', '1.11.0', '1.12.0'] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.clojure_version }} | ||
cancel-in-progress: true | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/[email protected] | ||
|
||
- name: Print concurrency group | ||
run: echo '${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}' | ||
|
||
- 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 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