Skip to content

Add build process using Github Actions #1175

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 25 commits into from
Jan 14, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
0354c1a
First attempt at running as github actions
jgebal Nov 24, 2021
de73451
Building github actions
jgebal Nov 24, 2021
1c3004a
Adding OJDBC Download
jgebal Nov 25, 2021
0b9f937
Adding TimeZone
jgebal Nov 25, 2021
0ce0368
Adding 21xe-full
jgebal Nov 25, 2021
4921610
Switching to 21c-xe-slim
jgebal Nov 30, 2021
09d3261
Fixing build numbers and sonar analysis configuration.
jgebal Dec 2, 2021
e3e8c79
Added update of project version and build number.
jgebal Jan 4, 2022
e841b9b
Fixing docs update
jgebal Jan 5, 2022
cae6a35
Update env variables
jgebal Jan 5, 2022
7e87558
Formatting and cleanup
jgebal Jan 5, 2022
9307524
Adding publishing of project version updates
jgebal Jan 5, 2022
169f61c
Update of token
jgebal Jan 6, 2022
82c4d21
Testing publishing of documentation to gh-pages
jgebal Jan 6, 2022
532be8d
Externalizing env variables.
jgebal Jan 6, 2022
12757ea
Added job names.
jgebal Jan 7, 2022
ddd3862
Fixing multi-line if statement.
jgebal Jan 7, 2022
5b64836
Implementing Release Action
jgebal Jan 7, 2022
28cdee3
Refactoring and adding dispatch of other repositories
jgebal Jan 8, 2022
0e6eb70
Testing triggering of build process on other repositories
jgebal Jan 9, 2022
06f3556
Enabling build and slack notification
jgebal Jan 10, 2022
6cd8b16
Update documentation publish condition
jgebal Jan 10, 2022
1fc87de
Enable dependency on downstream job dispatch
jgebal Jan 10, 2022
31cc42d
Final cleanup of travis build leftovers.
jgebal Jan 13, 2022
b94a3f7
Addding `utPLSQL-java-api` repo to dispatch post-build.
jgebal Jan 14, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
First attempt at running as github actions
  • Loading branch information
jgebal committed Nov 24, 2021
commit 0354c1a009f78df774b5c264c297eee4aa4f2d71
122 changes: 122 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
name: Deploy and test
env:
UT3_DEVELOP_SCHEMA: UT3_DEVELOP
UT3_DEVELOP_SCHEMA_PASSWORD: ut3
UT3_RELEASE_VERSION_SCHEMA: UT3
UT3_RELEASE_VERSION_SCHEMA_PASSWORD: ut3
UT3_USER: 'UT3\$USER#'
UT3_USER_PASSWORD: ut3
UT3_TESTER: UT3_TESTER
UT3_TESTER_PASSWORD: ut3
UT3_TESTER_HELPER: UT3_TESTER_HELPER
UT3_TESTER_HELPER_PASSWORD: ut3
UT3_TABLESPACE: users
BUILD_DIR: ${{env.GITHUB_WORKSPACE}}
JOB_ID: ${{env.GITHUB_RUN_ID}}
JOB_NUMBER: ${{env.GITHUB_RUN_NUMBER}}
PULL_REQUEST_NAME: ${env.GITHUB_HEAD_REF}
PULL_REQUEST_BRANCH: ${{env.GITHUB_HEAD_REF}}
TAG_NAME: ${TRAVIS_TAG}
REPO_SLUG: ${TRAVIS_REPO_SLUG}
PR_SLUG: ${{env.GITHUB_REPOSITORY}}
BRANCH_NAME: ${TRAVIS_BRANCH}
# Environment for building a release
CURRENT_BRANCH: ${TRAVIS_BRANCH}
UTPLSQL_REPO: "utPLSQL/utPLSQL"
UTPLSQL_BUILD_NO: ${{env.GITHUB_RUN_ID}}
UTPLSQL_VERSION: $(. .travis/get_project_version.sh)
UTPLSQL_BUILD_VERSION: $(. .travis/get_project_build_version.sh)
UTPLSQL_SOURCES_DIR: 'source'
UTPLSQL_BUILD_USER_NAME: "Travis CI"
CACHE_DIR: $HOME/.cache
# Database Env
SQLCLI: "${BUILD_DIR}/sqlcl/bin/sql"
OJDBC_HOME: "${BUILD_DIR}/ojdbc"
ORACLE_PWD: "oracle"
DOCKHER_HUB_REPO: "utplsqlv3/oracledb"
DOCKER_VOLUME: "/home/oracle/host"
DOCKER_ENV: "-e SQLCLI=sqlplus -e UT3_DEVELOP_SCHEMA -e UT3_DEVELOP_SCHEMA_PASSWORD -e UT3_RELEASE_VERSION_SCHEMA -e UT3_RELEASE_VERSION_SCHEMA_PASSWORD -e UT3_USER -e UT3_USER_PASSWORD -e UT3_TESTER -e UT3_TESTER_PASSWORD -e UT3_TESTER_HELPER -e UT3_TESTER_HELPER_PASSWORD -e UT3_TABLESPACE -e ORACLE_PWD -e CONNECTION_STR -e UTPLSQL_DIR"
#utPLSQL released version directory
UTPLSQL_DIR: "utPLSQL_latest_release"
SELFTESTING_BRANCH: ${TRAVIS_BRANCH}
UTPLSQL_CLI_VERSION: "3.1.8"
# Maven
MAVEN_HOME: /usr/local/maven
MAVEN_CFG: $HOME/.m2

on:
push:
branches: [ develop, feature/github_actions ]
pull_request:
branches: [ develop ]

workflow_dispatch:

jobs:
build:

env:
UTPLSQL_VERSION: ${{matrix.utplsql-version}}

runs-on: ubuntu-latest
strategy:
matrix:
include:
- oracle-version: "gvenzl/oracle-xe:11-slim"
connection-str: '127.0.0.1:1521/XE'
# docker-options: '--shm-size=1g'
# - oracle-version: "utplsqlv3/oracledb:12c-r1-se2-small"
# connection-str: '127.0.0.1:1521/ORCLCDB'
# - oracle-version: "utplsqlv3/oracledb:12c-r2-se2-small"
# connection-str: '127.0.0.1:1521/ORCLCDB'
- oracle-version: "gvenzl/oracle-xe:18-slim"
connection-str: '127.0.0.1:1521/XE'
docker-options: '-e ORACLE_PASSWORD=oracle'
# - oracle-version: "utplsqlv3/oracledb:18c-se2-small"
# connection-str: '127.0.0.1:1521/ORCLCDB'
# - oracle-version: "utplsqlv3/oracledb:19c-se2-small"
# connection-str: '127.0.0.1:1521/ORCLCDB'
- oracle-version: "gvenzl/oracle-xe:21-full"
connection-str: '127.0.0.1:1521/XE'
docker-options: '-e ORACLE_PASSWORD=oracle'

services:
oracle:
image: ${matrix.oracle-version}
env:
CONNECTION_STR: ${matrix.connection-str}
ORACLE_PASSWORD: oracle
ports:
- 1521:1521
options: >-
--health-cmd healthcheck.sh
--health-interval 10s
--health-timeout 5s
--health-retries 10
${matrix.docker-options}

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Install utPLSQL ${{matrix.utplsql-version}}
run: echo Installing ${UTPLSQL_VERSION} && sh ${{ github.workspace }}/scripts/1_install_utplsql.sh

- name: Install utPLSQL-cli
run: curl -Lk -o utPLSQL-cli.zip "https://github.com/utPLSQL/utPLSQL-cli/releases/download/v3.1.8/utPLSQL-cli.zip" && unzip utPLSQL-cli.zip && chmod -R u+x utPLSQL-cli

- name: Install demo project
run: sh ${{ github.workspace }}/scripts/2_install_demo_project.sh

- name: Install unit tests
run: sh ${{ github.workspace }}/scripts/3_install_tests.sh

- name: Run unit tests
run: sh ${{ github.workspace }}/scripts/4_run_tests.sh

- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
56 changes: 0 additions & 56 deletions .travis/download.js

This file was deleted.

72 changes: 0 additions & 72 deletions .travis/download.sh

This file was deleted.

File renamed without changes.
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy