-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Github Action for building the project.
- Loading branch information
Showing
5 changed files
with
124 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
name: Build, test, deploy documentation | ||
on: | ||
push: | ||
branches: [ develop, feature/github_actions ] | ||
pull_request: | ||
branches: [ develop ] | ||
workflow_dispatch: | ||
repository_dispatch: | ||
types: [utPLSQL-build] | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
ORACLE_VERSION: "gvenzl/oracle-xe:18.4.0-slim" | ||
UTPLSQL_VERSION: ${{matrix.utplsql_version}} | ||
UTPLSQL_FILE: ${{matrix.utplsql_file}} | ||
ORACLE_PASSWORD: oracle | ||
DB_URL: "127.0.0.1:1521:XE" | ||
DB_USER: app | ||
DB_PASS: app | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
utplsql_version: ["v3.0.1","v3.0.2","v3.0.3","v3.0.4","v3.1.1","v3.1.2","v3.1.3","v3.1.6","v3.1.7","v3.1.8","v3.1.9","v3.1.10","develop"] | ||
utplsql_file: ["utPLSQL"] | ||
jdk: ['8'] | ||
include: | ||
- utplsql_version: "v3.0.0" | ||
jdk: '8' | ||
utplsql_file: "utPLSQLv3.0.0" | ||
- utplsql_version: "develop" | ||
jdk: '9' | ||
utplsql_file: "utPLSQL" | ||
- utplsql_version: "develop" | ||
jdk: '10' | ||
utplsql_file: "utPLSQL" | ||
- utplsql_version: "develop" | ||
jdk: '11' | ||
utplsql_file: "utPLSQL" | ||
- utplsql_version: "develop" | ||
jdk: '12' | ||
utplsql_file: "utPLSQL" | ||
- utplsql_version: "develop" | ||
jdk: '13' | ||
utplsql_file: "utPLSQL" | ||
services: | ||
oracle: | ||
image: gvenzl/oracle-xe:18.4.0-slim | ||
env: | ||
ORACLE_PASSWORD: oracle | ||
ports: | ||
- 1521:1521 | ||
options: >- | ||
--health-cmd healthcheck.sh | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 10 | ||
--name oracle | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'adopt' | ||
java-version: ${{matrix.jdk}} | ||
cache: 'gradle' | ||
|
||
- name: Display env | ||
run: | | ||
echo JAVA_HOME = ${JAVA_HOME} | ||
echo UTPLSQL_FILE = ${UTPLSQL_FILE} | ||
echo ORACLE_VERSION = ${ORACLE_VERSION} | ||
echo PATH = ${PATH} | ||
ls ${JAVA_HOME} | ||
java -version | ||
echo $JAVA_OPTS | ||
echo $GRADLE_OPTS | ||
echo GRADLE_HOME = ${GRADLE_HOME} | ||
- name: Install utplsql | ||
run: .travis/install_utplsql.sh | ||
|
||
- name: Install demo project | ||
run: .travis/install_demo_project.sh | ||
|
||
- name: Build and test | ||
run: ./gradlew check | ||
|
||
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' |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.