Build #289
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
name: Build | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
schedule: | |
# monthly | |
- cron: "0 0 1 * *" | |
env: | |
#bump to clear caches | |
ACTION_CACHE_VERSION: 'v2' | |
LEIN_VERSION: '2.9.8' | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.m2/repository | |
key: ${{ env.ACTION_CACHE_VERSION }}-${{ runner.os }}-maven-${{ hashFiles('**/project.clj') }} | |
restore-keys: | | |
${{ env.ACTION_CACHE_VERSION }}-${{ runner.os }}-maven- | |
- name: Prepare java | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'temurin' | |
java-version: 11 | |
- name: Install clojure tools | |
uses: DeLaGuardo/[email protected] | |
with: | |
lein: ${{ env.LEIN_VERSION }} | |
- name: Warm deps cache | |
run: lein all deps | |
lint: | |
needs: setup | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.m2/repository | |
key: ${{ env.ACTION_CACHE_VERSION }}-${{ runner.os }}-maven-${{ hashFiles('**/project.clj') }} | |
restore-keys: | | |
${{ env.ACTION_CACHE_VERSION }}-${{ runner.os }}-maven- | |
- name: Prepare java | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'temurin' | |
java-version: 11 | |
- name: Install clojure tools | |
uses: DeLaGuardo/[email protected] | |
with: | |
lein: ${{ env.LEIN_VERSION }} | |
- name: Run Eastwood | |
run: lein eastwood | |
test-jvm: | |
needs: setup | |
strategy: | |
matrix: | |
java: ['8', '11', '17', '20'] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.m2/repository | |
key: ${{ env.ACTION_CACHE_VERSION }}-${{ runner.os }}-maven-${{ hashFiles('**/project.clj') }} | |
restore-keys: | | |
${{ env.ACTION_CACHE_VERSION }}-${{ runner.os }}-maven- | |
- name: Prepare java | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
- name: Install clojure tools | |
uses: DeLaGuardo/[email protected] | |
with: | |
lein: ${{ env.LEIN_VERSION }} | |
- name: Run JVM tests | |
run: lein test-all | |
# test-bb: | |
# needs: setup | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v2 | |
# - name: Prepare java | |
# uses: actions/setup-java@v2 | |
# with: | |
# distribution: 'temurin' | |
# java-version: 17 | |
# - name: Setup Babashka | |
# uses: turtlequeue/[email protected] | |
# with: | |
# babashka-version: 0.8.156 | |
# - name: Run Babashka tests | |
# run: ./bin/bb-test-runner.sh |