Skip to content

Commit

Permalink
Add minimal CI via GitHub Actions (#24)
Browse files Browse the repository at this point in the history
Not much to it, but hard to verify beforehand, I'll follow up with any
necessary tweaks/corrections.

Closes #22
  • Loading branch information
lread authored Sep 28, 2022
1 parent 37202bd commit 4d8fe9f
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: tests
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Clojure deps cache
uses: actions/cache@v3
with:
path: |
~/.m2/repository
~/.deps.clj
~/.gitlibs
key: cljdeps-${{ hashFiles('deps.edn') }}
restore-keys: cljdeps-

- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 8

- name: Install Clojure Tools
uses: DeLaGuardo/[email protected]
with:
cli: 'latest'

- name: Tools Versions
run: |
echo "java -version"
java -version
echo "clojure --version"
clojure --version
- name: Run tests
run: clojure -M:test

0 comments on commit 4d8fe9f

Please sign in to comment.