Skip to content

Commit

Permalink
migrate jenkins ci to GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
pmallampati-sift committed Jun 26, 2024
1 parent b9217a7 commit 827d244
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
branches: [ "master" ]

env:
ACCOUNT_ID: ${{ secrets.ACCOUNT_ID }}
API_KEY: ${{ secrets.API_KEY }}
GITHUBCLONEKEY: ${{ secrets.GITHUBCLONEKEY }}
GRADLE_OPTS: -Dorg.gradle.project.sonatypeUsername=username -Dorg.gradle.project.sonatypePassword=password

jobs:
Expand All @@ -33,3 +36,29 @@ jobs:

- name: Gradle Test
run: ./gradlew test

java_integration:
runs-on: ubuntu-latest
permissions:
contents: read

steps:
- uses: actions/checkout@v4

- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'zulu'

- name: Clone sift-java-integration-app and extract sift-java
- uses: actions/checkout@v1
with:
repository: organization_name/repo_name
token: ${{ secrets.GITHUBCLONEKEY }}

- name: Build with Gradle Wrapper
run: |
cd sift-java-integration-app
version=$(./gradlew properties -q | grep -E "^version:" | awk '{print $2}')
unzip -j ../build/distributions/sift-java-${version}.zip -d app/libs/

0 comments on commit 827d244

Please sign in to comment.