Skip to content

XENOPS-1201 Cleanup ; Added Alfresco 7.x; Dropped Alfresco 7.0 and lower #456

XENOPS-1201 Cleanup ; Added Alfresco 7.x; Dropped Alfresco 7.0 and lower

XENOPS-1201 Cleanup ; Added Alfresco 7.x; Dropped Alfresco 7.0 and lower #456

Workflow file for this run

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