bump CI versions; streamline JDK matrix #139
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: Develop & Snapshot | |
on: | |
push: | |
branches: | |
- "develop" | |
jobs: | |
build-and-snapshot: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
- name: Setup Clojure | |
uses: DeLaGuardo/setup-clojure@master | |
with: | |
cli: '1.11.1.1413' | |
- name: Cache All The Things | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.m2/repository | |
~/.gitlibs | |
~/.clojure | |
~/.cpcache | |
key: ${{ runner.os }}-${{ hashFiles('**/deps.edn') }} | |
- name: Setup Databases | |
run: docker-compose up -d | |
env: | |
MYSQL_ROOT_PASSWORD: testing | |
- name: Run MariaDB Tests | |
run: clojure -X:test | |
env: | |
MYSQL_ROOT_PASSWORD: testing | |
NEXT_JDBC_TEST_MYSQL: yes | |
NEXT_JDBC_TEST_MARIADB: yes | |
- name: Run All Tests and Snapshot | |
run: clojure -T:build ci :snapshot true | |
env: | |
MYSQL_ROOT_PASSWORD: testing | |
NEXT_JDBC_TEST_MYSQL: yes | |
NEXT_JDBC_TEST_MSSQL: yes | |
MSSQL_SA_PASSWORD: Str0ngP4ssw0rd | |
- 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: [ '11', '17', '20' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
- name: Setup Clojure | |
uses: DeLaGuardo/setup-clojure@master | |
with: | |
cli: '1.11.1.1413' | |
- name: Cache All The Things | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.m2/repository | |
~/.gitlibs | |
~/.clojure | |
~/.cpcache | |
key: ${{ runner.os }}-${{ hashFiles('**/deps.edn') }} | |
- name: Run Tests | |
run: clojure -T:build test | |
build-graalvm-new: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
graalvm: [ '21.1.0' ] | |
base: [ 'java11', 'java16' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup GraalVM | |
uses: DeLaGuardo/setup-graalvm@5.0 | |
with: | |
graalvm: ${{ matrix.graalvm }} | |
java: ${{ matrix.base }} | |
- name: Setup Clojure | |
uses: DeLaGuardo/setup-clojure@master | |
with: | |
cli: '1.11.1.1413' | |
- name: Cache All The Things | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.m2/repository | |
~/.gitlibs | |
~/.clojure | |
~/.cpcache | |
key: ${{ runner.os }}-${{ hashFiles('**/deps.edn') }} | |
- name: Run Tests | |
run: clojure -T:build test |