mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2026-09-16 18:12:54 +00:00
Bumps the github-actions group with 6 updates in the / directory: | Package | From | To | | --- | --- | --- | | [Alfresco/alfresco-build-tools](https://github.com/alfresco/alfresco-build-tools) | `8.26.0` | `18.21.0` | | [actions/checkout](https://github.com/actions/checkout) | `4` | `7` | | [Alfresco/ya-pmd-scan](https://github.com/alfresco/ya-pmd-scan) | `4.1.0` | `4.4.1` | | [docker/login-action](https://github.com/docker/login-action) | `3` | `4` | | [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) | `3` | `4` | | [actions/setup-python](https://github.com/actions/setup-python) | `5.4.0` | `7.0.0` | Updates `Alfresco/alfresco-build-tools` from 8.26.0 to 18.21.0 - [Release notes](https://github.com/alfresco/alfresco-build-tools/releases) - [Commits](https://github.com/alfresco/alfresco-build-tools/compare/v8.26.0...v18.21.0) Updates `actions/checkout` from 4 to 7 - [Release notes](https://github.com/actions/checkout/releases) - [Commits](https://github.com/actions/checkout/compare/v4...v7) Updates `Alfresco/ya-pmd-scan` from 4.1.0 to 4.4.1 - [Release notes](https://github.com/alfresco/ya-pmd-scan/releases) - [Commits](https://github.com/alfresco/ya-pmd-scan/compare/v4.1.0...v4.4.1) Updates `docker/login-action` from 3 to 4 - [Release notes](https://github.com/docker/login-action/releases) - [Commits](https://github.com/docker/login-action/compare/v3...v4) Updates `docker/setup-qemu-action` from 3 to 4 - [Release notes](https://github.com/docker/setup-qemu-action/releases) - [Commits](https://github.com/docker/setup-qemu-action/compare/v3...v4) Updates `actions/setup-python` from 5.4.0 to 7.0.0 - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/42375524e23c412d93fb67b49958b491fce71c38...5fda3b95a4ea91299a34e894583c3862153e4b97) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/setup-python dependency-version: 6.2.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: Alfresco/alfresco-build-tools dependency-version: 18.7.1 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: Alfresco/ya-pmd-scan dependency-version: 4.4.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: docker/login-action dependency-version: '4' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: docker/setup-qemu-action dependency-version: '4' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
264 lines
9.5 KiB
YAML
264 lines
9.5 KiB
YAML
name: Alfresco Transform Core CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- feature/**
|
|
- fix/**
|
|
- SP/**
|
|
- HF/**
|
|
- ATS-**
|
|
- ACS-**
|
|
- MNT-**
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- feature/**
|
|
- fix/**
|
|
- SP/**
|
|
- HF/**
|
|
schedule:
|
|
- cron: '0 5 * * 1'
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
DOCKERHUB_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
|
DOCKERHUB_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
|
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
|
|
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
|
|
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
|
|
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
|
|
GIT_USERNAME: ${{ secrets.BOT_GITHUB_USERNAME }}
|
|
GIT_EMAIL: ${{ secrets.BOT_GITHUB_EMAIL }}
|
|
GIT_PASSWORD: ${{ secrets.BOT_GITHUB_TOKEN }}
|
|
GITHUB_ACTIONS_DEPLOY_TIMEOUT: 120
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
pre_commit:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: Alfresco/alfresco-build-tools/.github/actions/pre-commit@v18.21.0
|
|
|
|
test_run_check:
|
|
name: "Test run check"
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
tests: ${{ steps.check.outputs.tests }}
|
|
steps:
|
|
- id: check
|
|
run: |
|
|
echo "tests=true" >> "$GITHUB_OUTPUT"
|
|
if: >
|
|
(
|
|
(github.ref_name == 'master' || startsWith(github.ref_name, 'SP/') || startsWith(github.ref_name, 'HF/') || github.event_name == 'pull_request') &&
|
|
!contains(github.event.head_commit.message, '[skip tests]')
|
|
) ||
|
|
contains(github.event.head_commit.message, '[run tests]')
|
|
|
|
pmd_scan:
|
|
name: "PMD Scan"
|
|
runs-on: ubuntu-latest
|
|
needs:
|
|
- test_run_check
|
|
if: needs.test_run_check.outputs.tests == 'true' && github.event_name == 'pull_request'
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v18.21.0
|
|
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v18.21.0
|
|
- uses: Alfresco/ya-pmd-scan@v4.4.1
|
|
with:
|
|
classpath-build-command: "mvn -ntp package -DskipTests"
|
|
|
|
build_and_test:
|
|
name: "Core & Base Snapshot deployment"
|
|
runs-on: ubuntu-latest
|
|
needs:
|
|
- pre_commit
|
|
- test_run_check
|
|
if: needs.test_run_check.outputs.tests == 'true'
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v18.21.0
|
|
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v18.21.0
|
|
- name: "Login to Docker Hub"
|
|
uses: docker/login-action@v4
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
- name: "Login to Quay.io"
|
|
uses: docker/login-action@v4
|
|
with:
|
|
registry: quay.io
|
|
username: ${{ secrets.QUAY_USERNAME }}
|
|
password: ${{ secrets.QUAY_PASSWORD }}
|
|
- name: "Enable experimental docker features"
|
|
run: |
|
|
echo '{"experimental":true}' | sudo tee /etc/docker/daemon.json
|
|
sudo service docker restart
|
|
- name: "Clean-up SNAPSHOT artifacts"
|
|
run: find "${HOME}/.m2/repository/" -type d -name "*-SNAPSHOT*" | xargs -r -l rm -rf
|
|
- name: "Build"
|
|
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
|
run: mvn -B -U -q clean install -DadditionalOption=-Xdoclint:none -DskipTests -Dmaven.javadoc.skip=true -Dmaven.wagon.http.pool=false -Pbase
|
|
- name: "Cache LibreOffice"
|
|
run: bash _ci/cache_artifacts.sh
|
|
- name: "Run tests"
|
|
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
|
run: mvn -B -U clean deploy -DadditionalOption=-Xdoclint:none -Dmaven.javadoc.skip=true -Dmaven.wagon.http.pool=false -Pbase
|
|
|
|
all_tests_matrix:
|
|
name: ${{ matrix.testName }}
|
|
runs-on: ubuntu-latest
|
|
needs:
|
|
- pre_commit
|
|
- test_run_check
|
|
if: needs.test_run_check.outputs.tests == 'true'
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- testName: ImageMagick
|
|
buildProfile: imagemagick
|
|
testProfile: imagemagick
|
|
- testName: LibreOffice
|
|
buildProfile: libreoffice
|
|
testProfile: libreoffice
|
|
- testName: Transform Misc
|
|
buildProfile: misc
|
|
testProfile: misc
|
|
- testName: PDF Renderer
|
|
buildProfile: pdf-renderer
|
|
testProfile: pdf-renderer
|
|
- testName: Tika
|
|
buildProfile: tika
|
|
testProfile: tika
|
|
- testName: All in One Transformer
|
|
buildProfile: full-build
|
|
testProfile: aio-test
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v18.21.0
|
|
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v18.21.0
|
|
- name: "Login to Docker Hub"
|
|
uses: docker/login-action@v4
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
- name: "Login to Quay.io"
|
|
uses: docker/login-action@v4
|
|
with:
|
|
registry: quay.io
|
|
username: ${{ secrets.QUAY_USERNAME }}
|
|
password: ${{ secrets.QUAY_PASSWORD }}
|
|
- name: "Enable experimental docker features"
|
|
run: |
|
|
echo '{"experimental":true}' | sudo tee /etc/docker/daemon.json
|
|
sudo service docker restart
|
|
- name: "Clean-up SNAPSHOT artifacts"
|
|
run: find "${HOME}/.m2/repository/" -type d -name "*-SNAPSHOT*" | xargs -r -l rm -rf
|
|
- name: "Build local docker image"
|
|
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
|
run: bash _ci/build.sh ${{ matrix.buildProfile }}
|
|
- name: "Cache LibreOffice"
|
|
run: bash _ci/cache_artifacts.sh
|
|
- name: "Run tests"
|
|
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
|
run: bash _ci/test.sh ${{ matrix.testProfile }}
|
|
|
|
e2e_javaruntime_tests:
|
|
name: "E2E AIO Smoke Tests ( Java: ${{ matrix.java }}"
|
|
runs-on: ubuntu-latest
|
|
needs:
|
|
- pre_commit
|
|
- test_run_check
|
|
if: needs.test_run_check.outputs.tests == 'true'
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
java: [ '21', '25' ]
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v18.21.0
|
|
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v18.21.0
|
|
- name: "Login to Docker Hub"
|
|
uses: docker/login-action@v4
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
- name: "Login to Quay.io"
|
|
uses: docker/login-action@v4
|
|
with:
|
|
registry: quay.io
|
|
username: ${{ secrets.QUAY_USERNAME }}
|
|
password: ${{ secrets.QUAY_PASSWORD }}
|
|
- name: "Enable experimental docker features"
|
|
run: |
|
|
echo '{"experimental":true}' | sudo tee /etc/docker/daemon.json
|
|
sudo service docker restart
|
|
- name: "Clean-up SNAPSHOT artifacts"
|
|
run: find "${HOME}/.m2/repository/" -type d -name "*-SNAPSHOT*" | xargs -r -l rm -rf
|
|
- name: "Build local docker image"
|
|
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
|
run: bash _ci/build.sh full-build
|
|
- name: "Cache LibreOffice"
|
|
run: bash _ci/cache_artifacts.sh
|
|
- name: "Run tests"
|
|
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
|
env:
|
|
SMOKE_TESTS: true
|
|
SKIP_DEPLOY: true
|
|
JAVA_RUNTIME_VERSION: ${{ matrix.java }}
|
|
run: bash _ci/test.sh aio-test
|
|
|
|
release:
|
|
name: "Release"
|
|
runs-on: ubuntu-latest
|
|
needs: [build_and_test, all_tests_matrix, e2e_javaruntime_tests]
|
|
if: >
|
|
!(failure() || cancelled()) &&
|
|
contains(github.event.head_commit.message, '[release]') &&
|
|
github.event_name != 'pull_request' &&
|
|
(github.ref_name == 'master' || startsWith(github.ref_name, 'SP/') || startsWith(github.ref_name, 'HF/'))
|
|
steps:
|
|
- uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v18.21.0
|
|
- uses: actions/checkout@v7
|
|
with:
|
|
persist-credentials: false
|
|
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v18.21.0
|
|
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v18.21.0
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v4
|
|
with:
|
|
platforms: linux/amd64,linux/arm64
|
|
- name: "Login to Docker Hub"
|
|
uses: docker/login-action@v4
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
- name: "Login to Quay.io"
|
|
uses: docker/login-action@v4
|
|
with:
|
|
registry: quay.io
|
|
username: ${{ secrets.QUAY_USERNAME }}
|
|
password: ${{ secrets.QUAY_PASSWORD }}
|
|
- name: "Enable experimental docker features"
|
|
run: |
|
|
echo '{"experimental":true}' | sudo tee /etc/docker/daemon.json
|
|
sudo service docker restart
|
|
- name: "Clean-up SNAPSHOT artifacts"
|
|
run: find "${HOME}/.m2/repository/" -type d -name "*-SNAPSHOT*" | xargs -r -l rm -rf
|
|
- uses: Alfresco/alfresco-build-tools/.github/actions/configure-git-author@v18.21.0
|
|
with:
|
|
username: ${{ env.GIT_USERNAME }}
|
|
email: ${{ env.GIT_EMAIL }}
|
|
global: true
|
|
- name: "Cache LibreOffice"
|
|
run: bash _ci/cache_artifacts.sh
|
|
- name: "Release"
|
|
timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }}
|
|
run: bash _ci/release.sh
|