Merge pull request #454 from threatgrid/release-1.3.19 #360
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: | |
# 12:00AM on the first of every month | |
- cron: "0 0 1 * *" | |
jobs: | |
setup: | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 5 | |
outputs: | |
matrix: ${{ steps.set-matrix.outputs.matrix }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install clojure tools | |
uses: DeLaGuardo/[email protected] | |
with: | |
lein: 2.9.8 | |
- name: Cache local Maven repository | |
uses: actions/cache@v2 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/project.clj') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Warm deps cache | |
run: for i in {1..10}; do lein deps :tree && break; done | |
test: | |
needs: setup | |
strategy: | |
matrix: | |
jdk: ["21"] | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Cache local Maven repository | |
uses: actions/cache@v2 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/project.clj') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Prepare java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.jdk }} | |
- name: Install clojure tools | |
uses: DeLaGuardo/[email protected] | |
with: | |
lein: latest | |
- run: lein do clean, compile :all, doo phantom test once | |
all-pr-checks: | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 5 | |
needs: test | |
steps: | |
- run: echo "All tests pass!" |