From 827d244cdee81390f0f526f8989a68d58478543b Mon Sep 17 00:00:00 2001 From: Phani Kumar Mallampati Date: Wed, 26 Jun 2024 13:38:54 -0700 Subject: [PATCH] migrate jenkins ci to GH actions --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ce831f9..b0827b9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -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/ \ No newline at end of file