XENOPS-1201 Dropped Alfresco 5 and 6; Added Alfresco 7.1, 7.2, 7.3, 7… #455
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: CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: temurin | |
- name: Test | |
run: ./gradlew test | |
- name: Upload reports | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: reports-test | |
path: alfresco-health-processor-platform/build/reports | |
- name: Upload analysis to sonarcloud | |
env: | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
GITHUB_TOKEN: ${{ github.token }} | |
run: ./gradlew aggregateJacocoReport sonarqube | |
- name: Javadoc | |
run: ./gradlew javadoc | |
integration-test: | |
runs-on: ubuntu-latest | |
# Disable temporarily | |
# if: ${{ github.ref == 'refs/heads/master' || github.base_ref == 'master' || startsWith(github.ref, 'refs/tags/') }} | |
strategy: | |
matrix: | |
flavour: [ "community" ] | |
version: [ "71", "72", "73", "74" ] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: temurin | |
- name: Test | |
run: ./gradlew :integration-tests:alfresco-${{ matrix.flavour }}-${{ matrix.version }}:integrationTest -Prandom_ports=true | |
- name: Upload reports | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: reports-integration-test-${{ matrix.flavour }}-${{ matrix.version }} | |
path: integration-tests/alfresco-${{ matrix.flavour }}-${{ matrix.version }}/build/reports | |
publish: | |
needs: [test, integration-test] | |
runs-on: ubuntu-latest | |
if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: temurin | |
- name: Publish | |
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 }} | |
run: ./gradlew publish -PsigningKeyId=CDE3528F |