Skip to content

Commit

Permalink
setup github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
philomates committed Jan 4, 2024
1 parent 550b584 commit 2406f0c
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Continuous Delivery

on:
push:
tags-ignore:
- '[a-z0-9]**'
branches:
- '**'
# allow for manual running of this workflow on the occasional case when github
# actions is being wonky
workflow_dispatch: null

jobs:
fetch-deps:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install java
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11.0.7'

- name: Install clojure
uses: DeLaGuardo/setup-clojure@master
with:
cli: '1.10.3.1087'
bb: latest
clj-kondo: latest

- name: maven cache
uses: actions/cache@v3
with:
path: |
~/.m2
~/.gitlibs
~/.deps.clj
key: ${{ runner.os }}-maven-${{ hashFiles('deps.edn','bb.edn') }}
restore-keys: |
${{ runner.os }}-maven-
- name: fetch maven deps
run: lein deps

- name: Run tests with Clojure 1.7
run: lein with-profile 1.7 midje

- name: Run tests with Clojure 1.8
run: lein with-profile 1.8 midje

- name: Run tests with Clojure 1.9
run: lein with-profile 1.9 midje

- name: Run tests with Clojure 1.10
run: lein with-profile 1.10 midje

- name: Run tests with Clojure 1.11
run: lein with-profile 1.11 midje

- name: Run tests with Clojure 1.12
run: lein with-profile 1.12 midje

0 comments on commit 2406f0c

Please sign in to comment.