1919 env :
2020 ORACLE_VERSION : " gvenzl/oracle-xe:18.4.0-slim"
2121 UTPLSQL_VERSION : " 3.1.13"
22- UTPLSQL_FILE : ${{matrix.utplsql_file}}
22+ UTPLSQL_FILE : " utPLSQL "
2323 ORACLE_PASSWORD : oracle
2424 DB_URL : " 127.0.0.1:1521:XE"
2525 DB_USER : app
5555 with :
5656 java-version : ' 11'
5757 distribution : ' adopt'
58- server-id : ossrh
59- server-username : MAVEN_USERNAME
60- server-password : MAVEN_PASSWORD
61- gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
62- gpg-passphrase : MAVEN_GPG_PASSPHRASE
6358
6459 - name : Cache local Maven repository
6560 uses : actions/cache@v2
@@ -70,52 +65,10 @@ jobs:
7065 ${{ runner.os }}-maven-
7166
7267 - name : Maven unit and integration tests with sonar
73- run : mvn clean verify sonar:sonar -Pcoverage -Dsonar.projectKey=org.utplsql:utplsql-maven-plugin
74- env :
75- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
76- SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
77-
78- - name : Maven deploy snapshot
79- run : mvn deploy -DskipTests
80- env :
81- MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
82- MAVEN_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
83- MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
68+ run : mvn clean verify
8469
8570 - name : Publish unit test results
8671 uses : EnricoMi/publish-unit-test-result-action@v1.24
8772 if : always()
8873 with :
8974 files : target/**/TEST**.xml
90-
91- dispatch :
92- name : Dispatch downstream builds
93- concurrency : trigger
94- needs : [ build, deploy ]
95- runs-on : ubuntu-latest
96- if : |
97- github.repository == 'utPLSQL/utPLSQL-java-api' && github.base_ref == null && github.ref == 'refs/heads/develop'
98- strategy :
99- matrix :
100- repo : [ 'utPLSQL/utPLSQL-maven-plugin', 'utPLSQL/utPLSQL-cli' ]
101- steps :
102- - name : Repository Dispatch
103- uses : peter-evans/repository-dispatch@v1
104- with :
105- token : ${{ secrets.API_TOKEN_GITHUB }}
106- repository : ${{ matrix.repo }}
107- event-type : utPLSQL-java-api-build
108-
109- slack-workflow-status :
110- if : always()
111- name : Post Workflow Status To Slack
112- needs : [ build, deploy, dispatch ]
113- runs-on : ubuntu-latest
114- steps :
115- - name : Slack Workflow Notification
116- uses : Gamesight/slack-workflow-status@master
117- with :
118- repo_token : ${{secrets.GITHUB_TOKEN}}
119- slack_webhook_url : ${{secrets.SLACK_WEBHOOK_URL}}
120- name : ' Github Actions[bot]'
121- icon_url : ' https://octodex.github.com/images/mona-the-rivetertocat.png'
0 commit comments