File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Test with utplsql-java-api snapshot
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ api_version :
7+ description : ' utplsql-java-api snapshot version (e.g. 3.2.4-SNAPSHOT)'
8+ required : true
9+
10+ repository_dispatch :
11+ types : [utPLSQL-java-api-build]
12+
13+ defaults :
14+ run :
15+ shell : bash
16+
17+ jobs :
18+ build :
19+ name : Test with utplsql-java-api ${{ github.event.client_payload.api_version || inputs.api_version }}
20+ runs-on : ubuntu-latest
21+ env :
22+ UTPLSQL_VERSION : develop
23+ UTPLSQL_FILE : utPLSQL
24+ DB_URL : " //localhost:1521/FREEPDB1"
25+ DB_USER : APP
26+ DB_PASS : APP
27+
28+ services :
29+ oracle :
30+ image : gvenzl/oracle-free:23-slim-faststart
31+ env :
32+ ORACLE_PASSWORD : oracle
33+ DB_URL : " //localhost:1521/FREEPDB1"
34+ DB_USER : APP
35+ DB_PASS : pass
36+ ports :
37+ - 1521:1521
38+ options : >-
39+ --health-cmd healthcheck.sh
40+ --health-interval 10s
41+ --health-timeout 5s
42+ --health-retries 10
43+ --name oracle
44+
45+ steps :
46+ - uses : actions/checkout@v4
47+ with :
48+ fetch-depth : 0
49+
50+ - uses : actions/setup-java@v5
51+ with :
52+ distribution : ' adopt'
53+ java-version : ' 17'
54+
55+ - name : Install utplsql
56+ run : .github/scripts/install_utplsql.sh
57+
58+ - name : Install demo project
59+ run : .github/scripts/install_demo_project.sh
60+
61+ - name : Build and Test
62+ run : |
63+ API_VERSION="${{ github.event.client_payload.api_version || inputs.api_version }}"
64+ mvn verify appassembler:assemble -Dutplsql-java-api.version="$API_VERSION"
65+
66+ slack-workflow-status :
67+ if : always()
68+ name : Post Workflow Status To Slack
69+ needs : [ build ]
70+ runs-on : ubuntu-latest
71+ steps :
72+ - name : Slack Workflow Notification
73+ uses : Gamesight/slack-workflow-status@master
74+ with :
75+ repo_token : ${{secrets.GITHUB_TOKEN}}
76+ slack_webhook_url : ${{secrets.SLACK_WEBHOOK_URL}}
77+ name : ' Github Actions[bot]'
78+ icon_url : ' https://octodex.github.com/images/mona-the-rivetertocat.png'
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ name: Build and test
22
33on :
44 push :
5+ branches : [ develop ]
56
67 pull_request :
78 branches : [ develop ]
Original file line number Diff line number Diff line change 1111 <url >https://github.com/utPLSQL/utPLSQL-cli</url >
1212
1313 <properties >
14+ <utplsql-java-api .version>3.2.3</utplsql-java-api .version>
1415 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
1516 <maven .compiler.release>11</maven .compiler.release>
1617 <junit .jupiter.version>5.12.2</junit .jupiter.version>
6869 <dependency >
6970 <groupId >org.utplsql</groupId >
7071 <artifactId >utplsql-java-api</artifactId >
71- <version >3.2.3 </version >
72+ <version >${utplsql-java-api.version} </version >
7273 </dependency >
7374 <dependency >
7475 <groupId >javax.xml.bind</groupId >
210211
211212 <repositories >
212213 <repository >
213- <id >utplsql-java-api</id >
214- <url >
215- https://packagecloud.io/utplsql/utplsql-java-api/maven2
216- </url >
217- <releases >
218- <enabled >true</enabled >
219- </releases >
220- <snapshots >
221- <enabled >true</enabled >
222- </snapshots >
214+ <id >central-snapshots</id >
215+ <url >https://central.sonatype.com/repository/maven-snapshots/</url >
216+ <snapshots ><enabled >true</enabled ></snapshots >
223217 </repository >
224218 </repositories >
225219
You can’t perform that action at this time.
0 commit comments