Skip to content

Commit c0a3675

Browse files
authored
ci: freshen/fix (#85)
Freshen CI build so it will run again. It was easier for me to move to GitHub Actions than to figure out why CircleCI might not be working, so I did that. Added interesting JDKs to CI test matrix. Closes #84
1 parent ac08444 commit c0a3675

File tree

2 files changed

+71
-49
lines changed

2 files changed

+71
-49
lines changed

.circleci/config.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
test:
13+
runs-on: ${{ matrix.os }}-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
os: [ ubuntu ]
18+
java-version: [ '8', '11', '17', '21', '23' ]
19+
20+
name: test ${{matrix.os}} jdk${{matrix.java-version}}
21+
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
26+
- name: Clojure deps cache
27+
uses: actions/cache@v4
28+
with:
29+
path: |
30+
~/.m2/repository
31+
key: $${ runner.os }}-cljdeps-${{ hashFiles('project.clj') }}
32+
restore-keys: $${ runner.os }}-cljdeps-
33+
34+
- name: Setup Java
35+
uses: actions/setup-java@v4
36+
with:
37+
distribution: 'temurin'
38+
java-version: ${{ matrix.java-version }}
39+
40+
- name: Install Babashka & Clojure
41+
uses: DeLaGuardo/setup-clojure@13.2
42+
with:
43+
lein: 'latest'
44+
45+
- name: Install planck (linux)
46+
run: |
47+
# There are not planck binaries for jammy yet, so hack-around to use focal release
48+
sudo add-apt-repository -y "deb http://cz.archive.ubuntu.com/ubuntu focal main universe"
49+
sudo add-apt-repository -y "deb http://security.ubuntu.com/ubuntu focal-security main"
50+
51+
# is missing after installing planck so compensate
52+
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y libicu66 libjavascriptcoregtk-4.0-18
53+
54+
wget https://launchpad.net/~mfikes/+archive/ubuntu/planck/+files/planck_2.25.0-1ppa1~focal1_amd64.deb
55+
sudo apt-get install ./planck_2.25.0-1ppa1~focal1_amd64.deb
56+
if: runner.os == 'Linux'
57+
58+
- name: Download deps
59+
run: lein deps
60+
61+
- name: Tools Versions
62+
run: |
63+
echo "java -version"
64+
java -version
65+
echo "lein --version"
66+
lein --version
67+
echo "planck --version"
68+
planck --version
69+
70+
- name: Run Tests
71+
run: lein test-all

0 commit comments

Comments
 (0)