Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jgebal committed Jan 14, 2022
1 parent 7d846a1 commit 3ad70fb
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ defaults:

jobs:
build:
name: Test on JDK ${{ matrix.jdk }} with utPLSQL ${{ matrix.utplsql_version }}
runs-on: ubuntu-latest
env:
ORACLE_VERSION: "gvenzl/oracle-xe:18.4.0-slim"
Expand Down Expand Up @@ -84,6 +85,7 @@ jobs:
echo $JAVA_OPTS
echo $GRADLE_OPTS
echo GRADLE_HOME = ${GRADLE_HOME}
echo GITHUB_EVENT_NAME = ${GITHUB_EVENT_NAME}
- name: Install utplsql
run: .travis/install_utplsql.sh
Expand All @@ -94,10 +96,31 @@ jobs:
- name: Build and test
run: ./gradlew check

deploy:
name: Deploy snapshot
needs: [ build ]
concurrency: deploy
runs-on: ubuntu-latest
if: |
github.repository == 'utPLSQL/utPLSQL-java-api' &&
github.event_name == 'push' &&
(github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/feature/github_actions')
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '8'
cache: 'gradle'
- name: Upload archives
run: ./gradlew uploadArchives

slack-workflow-status:
if: always()
name: Post Workflow Status To Slack
needs: [ build ]
needs: [ build, deploy ]
runs-on: ubuntu-latest
steps:
- name: Slack Workflow Notification
Expand Down

0 comments on commit 3ad70fb

Please sign in to comment.