Skip to content

Commit

Permalink
github actions (#26)
Browse files Browse the repository at this point in the history
Use GitHub Actions instead of CircleCI automation.
  • Loading branch information
vasylenko authored Apr 1, 2024
1 parent a359b62 commit 3675734
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 36 deletions.
35 changes: 0 additions & 35 deletions .circleci/config.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/test-all-jdks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "Test All JDKs"
on:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
docker-image:
- clojure:temurin-8-jammy
- clojure:temurin-11-jammy
- clojure:temurin-17-jammy
- clojure:temurin-21-jammy
clj-version: ["1.10", "1.11", "1.12"]
container: ${{ matrix.docker-image }}
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Restore Cache
uses: actions/cache/restore@v4
with:
path: /root/.m2 # Explicit path inside the container to overcome GitHub Actions bug https://github.com/actions/runner/issues/1876
key: ${{ matrix.docker-image }}-${{ matrix.clj-version }}-${{ hashFiles('deps.edn') }}

- name: Run Test
run: clojure -T:build test :clj '"${{ matrix.clj-version }}"'

- name: Save Cache
uses: actions/cache/save@v4
with:
path: /root/.m2
key: ${{ matrix.docker-image }}-${{ matrix.clj-version }}-${{ hashFiles('deps.edn') }}
2 changes: 1 addition & 1 deletion build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
(defn test "Run all the tests." [opts]
(bb/clean opts)
(bb/run-tests (cond-> (assoc opts :aliases [:ssm])
(:clj opts) (update :aliases into (:clj opts))))
(:clj opts) (update :aliases conj (:clj opts))))
opts)

(defn- build-jar [opts extra-aliases include-str]
Expand Down

0 comments on commit 3675734

Please sign in to comment.