Skip to content

Commit

Permalink
Merge pull request #197 from xenit-eu/ALFREDAPI-537/apix-interface-ci
Browse files Browse the repository at this point in the history
ALFREDAPI-537/apix-interface-ci
  • Loading branch information
WimCrols authored Jan 10, 2024
2 parents eb319c1 + 76f6841 commit d5e63dd
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 15 deletions.
47 changes: 32 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ on:
env:
ALFRESCO_NEXUS_USERNAME: ${{ secrets.ALFRESCO_NEXUS_USERNAME }}
ALFRESCO_NEXUS_PASSWORD: ${{ secrets.ALFRESCO_NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.MAVEN_CENTRAL_GPG_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.MAVEN_CENTRAL_GPG_PASSWORD }}
ORG_GRADLE_PROJECT_sonatype_username: ${{ secrets.SONATYPE_S01_USERNAME }}
ORG_GRADLE_PROJECT_sonatype_password: ${{ secrets.SONATYPE_S01_PASSWORD }}
BRANCH_NAME: ${{ github.ref_name }}
jobs:
BuildAndPublish:
strategy:
matrix:
alfresco_version: [ 70, 71, 72, 73, 74 ]
fail-fast: false
apix-interface:
runs-on: ubuntu-latest
steps:
- name: Check out
Expand All @@ -26,16 +27,40 @@ jobs:
registry: private.docker.xenit.eu
username: ${{ secrets.CLOUDSMITH_USER }}
password: ${{ secrets.CLOUDSMITH_APIKEY }}

- name: Build interface # Execute before integration testing to catch errors early
uses: gradle/[email protected]
with:
arguments: :apix-interface:build :apix-interface:javadoc

- name: Unit test REST API
uses: gradle/[email protected]
with:
arguments: --info :apix-rest-v1:test
- name: Publish
if: ${{ startsWith(github.ref, 'refs/heads/master') || startsWith(github.ref, 'refs/heads/release') }}"
uses: gradle/[email protected]
with:
arguments: --info -PsigningKeyId=DF8285F0 :apix-interface:publish

apix-impl:
strategy:
matrix:
alfresco_version: [ 70, 71, 72, 73, 74 ]
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
- name: Login to Docker
uses: docker/login-action@v2
with:
registry: private.docker.xenit.eu
username: ${{ secrets.CLOUDSMITH_USER }}
password: ${{ secrets.CLOUDSMITH_APIKEY }}
- name: Build and test
uses: gradle/[email protected]
with:
Expand All @@ -51,18 +76,10 @@ jobs:
report_paths: '**/build/test-results/**/TEST-*.xml'
github_token: ${{ secrets.GITHUB_TOKEN }}
detailed_summary: true

- name: Publish
if: ${{ startsWith(github.ref, 'refs/heads/master') || startsWith(github.ref, 'refs/heads/release') }}"
uses: gradle/[email protected]
env:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.MAVEN_CENTRAL_GPG_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.MAVEN_CENTRAL_GPG_PASSWORD }}
ORG_GRADLE_PROJECT_sonatype_username: ${{ secrets.SONATYPE_S01_USERNAME }}
ORG_GRADLE_PROJECT_sonatype_password: ${{ secrets.SONATYPE_S01_PASSWORD }}
BRANCH_NAME: ${{ github.ref_name }}
with:
arguments: >-
--info -PsigningKeyId=DF8285F0
:apix-interface:publish
:alfresco:${{ matrix.alfresco_version }}:publish
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
### Changed

### Fixed
* [ALFREDAPI-537](https://xenitsupport.jira.com/browse/ALFREDAPI-537): Fix conflicts between artifacts when publishing to Sonatype
* [ALFREDAPI-538](https://xenitsupport.jira.com/browse/ALFREDAPI-538): Fixed issue where errors related to jackson library conflicts would occurs while Alfresco is running

### Removed
Expand Down

0 comments on commit d5e63dd

Please sign in to comment.