-
Notifications
You must be signed in to change notification settings - Fork 11
63 lines (53 loc) · 1.56 KB
/
api-snapshot-check.yml
File metadata and controls
63 lines (53 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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: pass
services:
oracle:
image: gvenzl/oracle-free:23-slim-faststart
env:
ORACLE_PASSWORD: oracle
DB_URL: "//localhost:1521/FREEPDB1"
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
- name: Set up JDK
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '21'
- name: Install utplsql
run: .github/scripts/1_install_utplsql.sh
- name: Install demo project
run: .github/scripts/2_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"