Skip to content

Commit

Permalink
updating pipelines: (#1162)
Browse files Browse the repository at this point in the history
- cleaning unused code for maven central pipeline
- fixing codeQL pipeline
- sequentializing lambatest jobs

Signed-off-by: Mohab Mohie <Mohab.MohieElDeen@outlook.com>
  • Loading branch information
MohabMohie authored Jun 17, 2023
1 parent 326714e commit 3243cd7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 27 deletions.
22 changes: 3 additions & 19 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,13 @@ jobs:
distribution: 'zulu'
check-latest: true
server-id: ossrh
server-username: ${{ secrets.OSSRH_USERNAME }}
server-password: ${{ secrets.OSSRH_PASSWORD }}
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}

- uses: s4u/maven-settings-action@v2.8.0
with:
servers: |
[{
"id": "ossrh",
"username": "${{ secrets.OSSRH_USERNAME }}",
"password": "${{ secrets.OSSRH_PASSWORD }}"
}]
- name: Setup Prerequisites
run: |
git config --global gpg.program gpg
git config --global user.signingKey ${{ secrets.GPG_KEYNAME }}
git config --global commit.gpgsign true
gpg --version
Expand All @@ -59,14 +49,8 @@ jobs:
- name: Build SHAFT_Engine
env:
GITHUB_TOKEN: ${{ github.token }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_TOKEN: ${{ secrets.OSSRH_PASSWORD }}
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.OSSRH_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
gpg.keyname: ${{ secrets.GPG_KEYNAME }}
gpg.passphrase: ${{ secrets.GPG_PASSPHRASE }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
run: mvn -B clean package --file pom.xml -DskipTests

- name: Perform CodeQL Analysis
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/e2eTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,7 @@ jobs:

LambdaTest_NativeIOS:
runs-on: macOS-12
needs: [ LambdaTest_NativeAndroid ]
steps:
- name: Checkout Code
uses: actions/checkout@v3
Expand Down Expand Up @@ -843,6 +844,7 @@ jobs:

LambdaTest_WebApp:
runs-on: macOS-12
needs: [ LambdaTest_NativeAndroid, LambdaTest_NativeIOS ]
steps:
- name: Checkout Code
uses: actions/checkout@v3
Expand Down Expand Up @@ -882,6 +884,7 @@ jobs:

LambdaTest_DesktopWeb:
runs-on: macOS-12
needs: [ LambdaTest_NativeAndroid, LambdaTest_NativeIOS, LambdaTest_WebApp ]
steps:
- name: Checkout Code
uses: actions/checkout@v3
Expand Down
8 changes: 0 additions & 8 deletions .github/workflows/mavenCentral_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,6 @@ jobs:
generateReleaseNotes: true
name: ${{ env.RELEASE_VERSION }}
tag: ${{ env.RELEASE_VERSION }}
# - uses: s4u/maven-settings-action@v2.8.0
# with:
# servers: |
# [{
# "id": "ossrh",
# "username": "${{ secrets.OSSRH_USERNAME }}",
# "password": "${{ secrets.OSSRH_PASSWORD }}"
# }]
- name: Setup Prerequisites
run: |
git config --global user.signingKey ${{ secrets.GPG_KEYNAME }}
Expand Down

0 comments on commit 3243cd7

Please sign in to comment.