Skip to content

Commit

Permalink
Merge pull request #188 from zero88/feature/use-shared-gh-workflow
Browse files Browse the repository at this point in the history
chore(build): use shared-ghactions in `build` GHA job
  • Loading branch information
zero88 authored Mar 19, 2024
2 parents 8f41713 + 10e6e16 commit 60c0d02
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 97 deletions.
43 changes: 0 additions & 43 deletions .github/actions/gha-build/action.yml

This file was deleted.

27 changes: 8 additions & 19 deletions .github/workflows/jooqx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,28 +38,20 @@ jobs:
gpgPassphrase: ${{ secrets.CI_GPG_PASSPHARSE }}

build:
uses: zero88/shared-ghactions/.github/workflows/gradle-build.yml@main
needs: context
if: needs.context.outputs.shouldBuild == 'true'
strategy:
matrix:
java: [ '8', '11', '17' ]
os: [ 'ubuntu-latest', 'windows-latest' ]
name: Build Java ${{ matrix.java }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}
env:
PROFILE: 'ciBuild'
steps:
- uses: actions/checkout@v4

- name: Build
uses: ./.github/actions/gha-build
with:
profile: ${{ env.PROFILE }}
version: ${{ needs.context.outputs.version }}
semanticVersion: ${{ needs.context.outputs.semanticVersion }}
hashVersion: ${{ needs.context.outputs.commitId }}
javaDist: ${{ env.JAVA_DIST }}
javaVersion: ${{ matrix.java }}
name: Build & Test Java ${{ matrix.java }} (${{ matrix.os }})
with:
profile: 'jooqx'
version: ${{ needs.context.outputs.version }}
semanticVersion: ${{ needs.context.outputs.semanticVersion }}
hashVersion: ${{ needs.context.outputs.commitId }}
javaVersion: ${{ matrix.java }}

analysis:
needs: context
Expand Down Expand Up @@ -183,9 +175,6 @@ jobs:
needs: [ context, docs ]
if: needs.context.outputs.shouldPublish == 'true' || needs.context.outputs.isRelease == 'true'
with:
webdocsRepo: 'zero88/webdocs'
webdocsRef: 'main'
webdocsWorkflow: 'webdocs.yml'
docCommitMsg: ${{ needs.context.outputs.docCommitMsg }}
secrets:
githubToken: ${{ secrets.OSS_GITHUB_TOKEN }}
Expand Down
23 changes: 7 additions & 16 deletions .github/workflows/jpa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,29 +37,20 @@ jobs:
gpgPassphrase: ${{ secrets.CI_GPG_PASSPHARSE }}

build:
uses: zero88/shared-ghactions/.github/workflows/gradle-build.yml@main
needs: context
if: needs.context.outputs.shouldBuild == 'true'
strategy:
matrix:
java: [ '8', '11', '17' ]
os: [ 'ubuntu-latest', 'windows-latest' ]
name: Build & Test Java ${{ matrix.java }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4

- name: Build
uses: ./.github/actions/gha-build
with:
profile: ${{ env.PROFILE }}
version: ${{ needs.context.outputs.version }}
semanticVersion: ${{ needs.context.outputs.semanticVersion }}
hashVersion: ${{ needs.context.outputs.commitId }}
javaVersion: ${{ matrix.java }}

- name: Test
shell: bash
run: ./gradlew test -Pprofile=${{ env.PROFILE }}
with:
profile: 'jpa'
version: ${{ needs.context.outputs.version }}
semanticVersion: ${{ needs.context.outputs.semanticVersion }}
hashVersion: ${{ needs.context.outputs.commitId }}
javaVersion: ${{ matrix.java }}

publish:
needs: [ context, build ]
Expand Down
26 changes: 7 additions & 19 deletions .github/workflows/rsql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,29 +36,20 @@ jobs:
gpgPassphrase: ${{ secrets.CI_GPG_PASSPHARSE }}

build:
uses: zero88/shared-ghactions/.github/workflows/gradle-build.yml@main
needs: context
if: needs.context.outputs.shouldBuild == 'true'
strategy:
matrix:
java: [ '8', '11', '17' ]
os: [ 'ubuntu-latest', 'windows-latest' ]
name: Build & Test Java ${{ matrix.java }} (${{ matrix.os }})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4

- name: Build
uses: ./.github/actions/gha-build
with:
profile: ${{ env.PROFILE }}
version: ${{ needs.context.outputs.version }}
semanticVersion: ${{ needs.context.outputs.semanticVersion }}
hashVersion: ${{ needs.context.outputs.commitId }}
javaVersion: ${{ matrix.java }}

- name: Test
shell: bash
run: ./gradlew test -Pprofile=${{ env.PROFILE }}
with:
profile: 'rsql'
version: ${{ needs.context.outputs.version }}
semanticVersion: ${{ needs.context.outputs.semanticVersion }}
hashVersion: ${{ needs.context.outputs.commitId }}
javaVersion: ${{ matrix.java }}

docs:
uses: zero88/shared-ghactions/.github/workflows/antora-docs.yml@main
Expand Down Expand Up @@ -87,9 +78,6 @@ jobs:
needs: [ context, docs ]
if: needs.context.outputs.shouldPublish == 'true' || needs.context.outputs.isRelease == 'true'
with:
webdocsRepo: 'zero88/webdocs'
webdocsRef: 'main'
webdocsWorkflow: 'webdocs.yml'
docCommitMsg: ${{ needs.context.outputs.docCommitMsg }}
secrets:
githubToken: ${{ secrets.OSS_GITHUB_TOKEN }}
Expand Down

0 comments on commit 60c0d02

Please sign in to comment.