ALFREDAPI-531 fix facet qname splitting #338
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Continuous Integration' | |
on: | |
push: | |
workflow_dispatch: | |
env: | |
ALFRESCO_NEXUS_USERNAME: ${{ secrets.ALFRESCO_NEXUS_USERNAME }} | |
ALFRESCO_NEXUS_PASSWORD: ${{ secrets.ALFRESCO_NEXUS_PASSWORD }} | |
jobs: | |
test: | |
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: Build interface | |
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: Upload test reports | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: test-result | |
path: /home/runner/work/**/build/reports | |
retention-days: 2 | |
integration-test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
alfresco_version: [ 62, 70, 71, 72, 73 ] | |
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: Integration test and apix impl test | |
uses: gradle/[email protected] | |
with: | |
arguments: >- | |
--info | |
:apix-impl:apix-impl-${{ matrix.alfresco_version }}:test | |
:apix-integrationtests:alfresco:${{ matrix.alfresco_version }}:integrationTest | |
- name: Upload test reports | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: test-result-${{ matrix.alfresco_version }} | |
path: /home/runner/work/**/build/reports | |
retention-days: 2 | |
publish-interface: | |
needs: [ test, integration-test ] | |
runs-on: ubuntu-latest | |
if: ${{ startsWith(github.ref, 'refs/heads/master') || startsWith(github.ref, 'refs/heads/release') }} | |
steps: | |
- name: Check out | |
uses: actions/checkout@v3 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 11 | |
distribution: temurin | |
- name: Publish | |
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 }} | |
with: | |
arguments: >- | |
--info -PsigningKeyId=DF8285F0 | |
:apix-interface:publish | |
publish-impl: | |
needs: [ test, integration-test ] | |
runs-on: ubuntu-latest | |
if: ${{ startsWith(github.ref, 'refs/heads/master') || startsWith(github.ref, 'refs/heads/release') }} | |
strategy: | |
fail-fast: false | |
matrix: | |
alfresco_version: [ 62, 70, 71, 72, 73 ] | |
steps: | |
- name: Check out | |
uses: actions/checkout@v3 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 11 | |
distribution: temurin | |
- name: Publish | |
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 }} | |
with: | |
arguments: >- | |
--info -PsigningKeyId=DF8285F0 | |
:alfresco:${{ matrix.alfresco_version }}:publish |