Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Enable running the utPLSQL-cli build process directly from snapshot d…
…ependency.

Fixed SNAPSHOTS repository.
  • Loading branch information
Jacek Gębal committed Apr 23, 2026
commit bfddc6f12b404490b63c160d68d67317fcb208a8
78 changes: 78 additions & 0 deletions .github/workflows/api-snapshot-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: Test with utplsql-java-api snapshot

on:
workflow_dispatch:
inputs:
api_version:
description: 'utplsql-java-api snapshot version (e.g. 3.2.4-SNAPSHOT)'
required: true

repository_dispatch:
types: [utPLSQL-java-api-build]

defaults:
run:
shell: bash

jobs:
build:
name: Test with utplsql-java-api ${{ github.event.client_payload.api_version || inputs.api_version }}
runs-on: ubuntu-latest
env:
UTPLSQL_VERSION: develop
UTPLSQL_FILE: utPLSQL
DB_URL: "//localhost:1521/FREEPDB1"
DB_USER: APP
DB_PASS: APP

services:
oracle:
image: gvenzl/oracle-free:23-slim-faststart
env:
ORACLE_PASSWORD: oracle
DB_URL: "//localhost:1521/FREEPDB1"
DB_USER: APP
DB_PASS: pass
ports:
- 1521:1521
options: >-
--health-cmd healthcheck.sh
--health-interval 10s
--health-timeout 5s
--health-retries 10
--name oracle

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-java@v5
with:
distribution: 'adopt'
java-version: '17'

- name: Install utplsql
run: .github/scripts/install_utplsql.sh

- name: Install demo project
run: .github/scripts/install_demo_project.sh

- name: Build and Test
run: |
API_VERSION="${{ github.event.client_payload.api_version || inputs.api_version }}"
mvn verify appassembler:assemble -Dutplsql-java-api.version="$API_VERSION"

slack-workflow-status:
if: always()
name: Post Workflow Status To Slack
needs: [ build ]
runs-on: ubuntu-latest
steps:
- name: Slack Workflow Notification
uses: Gamesight/slack-workflow-status@master
with:
repo_token: ${{secrets.GITHUB_TOKEN}}
slack_webhook_url: ${{secrets.SLACK_WEBHOOK_URL}}
name: 'Github Actions[bot]'
icon_url: 'https://octodex.github.com/images/mona-the-rivetertocat.png'
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Build and test

on:
push:
branches: [ develop ]

pull_request:
branches: [ develop ]
Expand Down
16 changes: 5 additions & 11 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<url>https://github.com/utPLSQL/utPLSQL-cli</url>

<properties>
<utplsql-java-api.version>3.2.3</utplsql-java-api.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.release>11</maven.compiler.release>
<junit.jupiter.version>5.12.2</junit.jupiter.version>
Expand Down Expand Up @@ -68,7 +69,7 @@
<dependency>
<groupId>org.utplsql</groupId>
<artifactId>utplsql-java-api</artifactId>
<version>3.2.3</version>
<version>${utplsql-java-api.version}</version>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
Expand Down Expand Up @@ -210,16 +211,9 @@

<repositories>
<repository>
<id>utplsql-java-api</id>
<url>
https://packagecloud.io/utplsql/utplsql-java-api/maven2
</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
<id>central-snapshots</id>
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>

Expand Down
Loading