Skip to content

Jdbc transaction

Jdbc transaction #67

Workflow file for this run

name: CI/CD
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v3
- name: Set up JDK ${{ vars.JDK_VERSION }} ${{ vars.JDK_DISTRIBUTION }}
uses: actions/setup-java@v4
with:
java-version: ${{ vars.JDK_VERSION }}
distribution: ${{ vars.JDK_DISTRIBUTION }}
- name: Cache Gradle
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: |
${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', 'gradle/*.versions.toml') }}
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build and Publish
env:
REPOSITORY_SNAPSHOTS_URL: ${{ vars.REPOSITORY_SNAPSHOTS_URL }}
REPOSITORY_RELEASES_URL: ${{ vars.REPOSITORY_RELEASES_URL }}
REPOSITORY_USERNAME: ${{ secrets.REPOSITORY_USERNAME }}
REPOSITORY_PASSWORD: ${{ secrets.REPOSITORY_PASSWORD }}
run: ./gradlew build publish -Dkotest.tags="Unit | Component"