Update derby to 10.17.1.0 #2979
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: CI | |
on: | |
pull_request: | |
branches: [ '**' ] | |
push: | |
branches: [ 'main' ] | |
tags: [ 'v*' ] | |
concurrency: | |
group: "${{ github.workflow }}-${{ github.ref }}" | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java: [ 11, 21 ] | |
scala: [ 2.12.x, 2.13.x, 3.x ] | |
services: | |
postgres: | |
image: postgres | |
env: | |
POSTGRES_PASSWORD: postgres | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
oracle: | |
image: oracleinanutshell/oracle-xe-11g | |
ports: | |
- 49160:22 | |
- 49161:1521 | |
sqlserver: | |
image: mcr.microsoft.com/mssql/server:2022-latest | |
env: | |
ACCEPT_EULA: Y | |
MSSQL_SA_PASSWORD: Freeslick18 | |
ports: | |
- 1401:1433 | |
db2: | |
image: ibmcom/db2:11.5.8.0 | |
ports: | |
- 50000:50000 | |
env: | |
DB2INST1_PASSWORD: db2inst1-pwd | |
DB2INSTANCE: db2inst1 | |
DBNAME: SLICKTST | |
LICENSE: accept | |
options: >- | |
--privileged | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Start MySQL | |
run: docker run -d -e MYSQL_ALLOW_EMPTY_PASSWORD=yes -p 3306:3306 mysql --disable-log-bin | |
- uses: ts-graphviz/setup-graphviz@v2 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: adopt | |
java-version: ${{ matrix.java }} | |
cache: sbt | |
- name: Build and test | |
run: | | |
sbt ++${{ matrix.scala }} coverage testAll coverageReport | |
env: | |
SLICK_TESTKIT_CONFIG: test-dbs/testkit.github-actions.conf | |
TZ: Asia/Kamchatka | |
- name: Upload test results | |
uses: actions/upload-artifact@v4 | |
if: always() # run this step even if previous step failed | |
with: | |
name: test-results-java${{ matrix.java }}-scala${{ matrix.scala }} | |
path: '**/target/test-reports/TEST-*.xml' | |
deploy_docs: | |
name: Deploy Docs | |
needs: [ build ] | |
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: ts-graphviz/setup-graphviz@v2 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: adopt | |
java-version: 11 | |
cache: sbt | |
- name: Create deploy key | |
run: | | |
echo "${{ secrets.PUBLISH_DOCS_KEY }}" > deploy-key | |
chmod 600 deploy-key | |
- name: Set git user config to github actions bot | |
run: | | |
git config --global user.name 'github-actions[bot]' | |
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | |
- name: Publish docs to website | |
run: GIT_SSH_COMMAND="ssh -i $(pwd)/deploy-key" sbt site/deployDocs | |
publish: | |
name: Release | |
needs: [ build ] | |
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v')) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: ts-graphviz/setup-graphviz@v2 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: adopt | |
java-version: 11 | |
cache: sbt | |
- name: Publish artifacts to Maven Central | |
env: | |
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | |
PGP_SECRET: ${{ secrets.PGP_SECRET }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
run: sbt ci-release |