Skip to content

Commit

Permalink
Merge pull request #137 from RolandHewage/alpha4_listener_revamp
Browse files Browse the repository at this point in the history
Revamp event listener and SLAlpha4 migration
  • Loading branch information
abeykoon authored Apr 20, 2021
2 parents c03a218 + bf35050 commit c822d9f
Show file tree
Hide file tree
Showing 86 changed files with 1,995 additions and 2,728 deletions.
2 changes: 0 additions & 2 deletions .ballerina/.gitignore

This file was deleted.

6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#
# https://help.github.com/articles/dealing-with-line-endings/
#
# These are explicitly windows files and should use crlf
*.bat text eol=crlf

41 changes: 34 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,48 @@
name: CI

# Controls when the action will run.
# Triggers the workflow on push.
on: [push]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:

# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Set up Java Environment
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11

# Grant execute permission to the gradlew script
- name: Grant execute permission for gradlew
run: chmod +x gradlew

# Build the project with Gradle
- name: Build with Gradle
env:
packageUser: ${{ secrets.BALLERINA_BOT_USERNAME }}
packagePAT: ${{ secrets.BALLERINA_BOT_TOKEN }}
JAVA_OPTS: -DBALLERINA_DEV_COMPILE_BALLERINA_ORG=true
run: |
./gradlew build
# Build the ballerina project
- name: Ballerina Build
uses: ballerina-platform/ballerina-action/@swan-lake-connector-release
uses: ballerina-platform/ballerina-action/@master
with:
args:
build -c
build -c ./gsheet
env:
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }}

JAVA_HOME: /usr/lib/jvm/default-jvm
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }}
48 changes: 48 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI

# Controls when the action will run.
# Triggers the workflow on pull request.
on: [pull_request]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Set up Java Environment
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11

# Grant execute permission to the gradlew script
- name: Grant execute permission for gradlew
run: chmod +x gradlew

# Build the project with Gradle
- name: Build with Gradle
env:
packageUser: ${{ secrets.BALLERINA_BOT_USERNAME }}
packagePAT: ${{ secrets.BALLERINA_BOT_TOKEN }}
JAVA_OPTS: -DBALLERINA_DEV_COMPILE_BALLERINA_ORG=true
run: |
./gradlew build
# Build the ballerina project
- name: Ballerina Build
uses: ballerina-platform/ballerina-action/@master
with:
args:
build -c ./gsheet
env:
JAVA_HOME: /usr/lib/jvm/default-jvm
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }}
44 changes: 37 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,57 @@
name: Deployment

# Controls when the action will run.
# Triggers the workflow on release.
on:
release:
types: [published]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:

# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Set up Java Environment
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11

# Grant execute permission to the gradlew script
- name: Grant execute permission for gradlew
run: chmod +x gradlew

# Build the project with Gradle
- name: Build with Gradle
env:
packageUser: ${{ secrets.BALLERINA_BOT_USERNAME }}
packagePAT: ${{ secrets.BALLERINA_BOT_TOKEN }}
JAVA_OPTS: -DBALLERINA_DEV_COMPILE_BALLERINA_ORG=true
run: |
./gradlew build
# Build the ballerina project
- name: Ballerina Build
uses: ballerina-platform/ballerina-action/@swan-lake-connector-release
uses: ballerina-platform/ballerina-action/@master
with:
args:
build --skip-tests
build -c ./gsheet
env:
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }}
JAVA_HOME: /usr/lib/jvm/default-jvm
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }}
REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }}

# Push the module to the Ballerina central
- name: Ballerina Push
uses: ballerina-platform/ballerina-action/@swan-lake-connector-release
uses: ballerina-platform/ballerina-action/@master
with:
args:
push
Expand Down
44 changes: 17 additions & 27 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
# Compiled class file
*.class
*.balx

# Log file
*.log

#conf file
ballerina.conf

#lock file
*Ballerina.lock

# BlueJ files
*.ctxt

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
Expand All @@ -27,25 +21,21 @@ ballerina.conf
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

# Ignore everything in this directory
target
.classpath
.settings
.project
*.iml
*.iws
*.ipr
.idea
.m2
.vscode/
# Ignore ballerina files
accessToken.bal
temp.bal.ballerina/
target/
.DS_Store

#Config file
#Ballerina configuartion file
ballerina.conf
Config.toml

# Modules
#Target folder of ballerina project
/target

#json files created inside resources folder
**/resources

# IDEA file
.idea

# Ignore Gradle project-specific cache directory
.gradle

# Ignore Gradle build output directory
build
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit c822d9f

Please sign in to comment.