update #5

Open
mdebray wants to merge 231 commits from update into main
Showing only changes of commit e89ac84928 - Show all commits

View file

@ -1,26 +1,41 @@
name: Build repo name: Build repo
on: on:
repository_dispatch: push:
types: [trigger-build] branches: ["main"]
workflow_run:
workflows: ["Pull Request Labeler"]
types:
- completed
jobs: jobs:
build: build:
if: | if: github.event_name == 'push' && github.ref == 'refs/heads/main' ||
github.event.client_payload.pr_number && (github.event_name == 'workflow_run' &&
contains(github.event.client_payload.labels, 'licenses') == false && contains(github.event.workflow_run.pull_request.labels.*.name, 'licenses') == false &&
( (
contains(github.event.client_payload.labels, 'Front End') || contains(github.event.workflow_run.pull_request.labels.*.name, 'Front End') ||
contains(github.event.client_payload.labels, 'Java') || contains(github.event.workflow_run.pull_request.labels.*.name, 'Java') ||
contains(github.event.client_payload.labels, 'Back End') || contains(github.event.workflow_run.pull_request.labels.*.name, 'Back End') ||
contains(github.event.client_payload.labels, 'Security') || contains(github.event.workflow_run.pull_request.labels.*.name, 'Security') ||
contains(github.event.client_payload.labels, 'API') || contains(github.event.workflow_run.pull_request.labels.*.name, 'API') ||
contains(github.event.client_payload.labels, 'Docker') || contains(github.event.workflow_run.pull_request.labels.*.name, 'Docker') ||
contains(github.event.client_payload.labels, 'Test') contains(github.event.workflow_run.pull_request.labels.*.name, 'Test')
)
) )
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
jdk-version: [17, 21]
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -40,17 +55,18 @@ jobs:
run: ./gradlew build --no-build-cache run: ./gradlew build --no-build-cache
docker-compose-tests: docker-compose-tests:
if: | if: github.event_name == 'push' && github.ref == 'refs/heads/main' ||
github.event.client_payload.pr_number && (github.event_name == 'pull_request' &&
contains(github.event.client_payload.labels, 'licenses') == false && contains(github.event.pull_request.labels.*.name, 'licenses') == false &&
( (
contains(github.event.client_payload.labels, 'Front End') || contains(github.event.pull_request.labels.*.name, 'Front End') ||
contains(github.event.client_payload.labels, 'Java') || contains(github.event.pull_request.labels.*.name, 'Java') ||
contains(github.event.client_payload.labels, 'Back End') || contains(github.event.pull_request.labels.*.name, 'Back End') ||
contains(github.event.client_payload.labels, 'Security') || contains(github.event.pull_request.labels.*.name, 'Security') ||
contains(github.event.client_payload.labels, 'API') || contains(github.event.pull_request.labels.*.name, 'API') ||
contains(github.event.client_payload.labels, 'Docker') || contains(github.event.pull_request.labels.*.name, 'Docker') ||
contains(github.event.client_payload.labels, 'Test') contains(github.event.pull_request.labels.*.name, 'Test')
)
) )
runs-on: ubuntu-latest runs-on: ubuntu-latest