65 lines
1.8 KiB
YAML
65 lines
1.8 KiB
YAML
name: Develop & Snapshot
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "develop"
|
|
|
|
jobs:
|
|
build-and-snapshot:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-java@v4
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '11'
|
|
- name: Setup Clojure
|
|
uses: DeLaGuardo/setup-clojure@master
|
|
with:
|
|
cli: '1.12.0.1530'
|
|
- name: Cache All The Things
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
~/.m2/repository
|
|
~/.gitlibs
|
|
~/.clojure
|
|
~/.cpcache
|
|
key: ${{ runner.os }}-${{ hashFiles('**/deps.edn') }}
|
|
- name: Run Tests
|
|
run: clojure -T:build ci :snapshot true
|
|
- name: Deploy Snapshot
|
|
run: clojure -T:build deploy :snapshot true
|
|
env:
|
|
CLOJARS_PASSWORD: ${{secrets.DEPLOY_TOKEN}}
|
|
CLOJARS_USERNAME: ${{secrets.DEPLOY_USERNAME}}
|
|
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
java: [ '8', '17', '21' ]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-java@v4
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: ${{ matrix.java }}
|
|
- name: Clojure CLI
|
|
uses: DeLaGuardo/setup-clojure@master
|
|
with:
|
|
cli: '1.12.0.1530'
|
|
- name: Cache All The Things
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
~/.m2/repository
|
|
~/.gitlibs
|
|
~/.clojure
|
|
~/.cpcache
|
|
key: ${{ runner.os }}-${{ hashFiles('**/deps.edn') }}
|
|
- name: Run Tests
|
|
run: clojure -T:build ci
|
|
- name: Check cljdoc.edn
|
|
run: curl -fsSL https://raw.githubusercontent.com/cljdoc/cljdoc/master/script/verify-cljdoc-edn | bash -s doc/cljdoc.edn
|