From bff6ceb68ac6c515cc36496617b12a86c94a5079 Mon Sep 17 00:00:00 2001 From: Said BOUDJELDA Date: Sat, 25 Nov 2023 21:35:48 +0100 Subject: [PATCH] Update github actions configuration - update actions steps's tools - add entry for building project with jdk 21 - add the ability to build project on pull request stage fix build issue on matrix --- .github/workflows/ci-actions.yml | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-actions.yml b/.github/workflows/ci-actions.yml index 0f29c5a6..89aba169 100644 --- a/.github/workflows/ci-actions.yml +++ b/.github/workflows/ci-actions.yml @@ -1,8 +1,29 @@ name: Jakarta Contexts and Dependency Injection CI on: + push: + branches-ignore: + - 'wip/**' + - 'draft/**' + paths-ignore: + - '.gitignore' + - 'CONTRIBUTING.adoc' + - 'NOTICE.md' + - 'LICENSE' + - '*.md' + - '*.adoc' + - '*.txt' pull_request: - branches: [ master ] + types: [opened, synchronize, reopened, ready_for_review] + paths-ignore: + - '.gitignore' + - 'CONTRIBUTING.adoc' + - 'NOTICE.md' + - 'LICENSE' + - '*.md' + - '*.adoc' + - '*.txt' + workflow_dispatch: jobs: build: @@ -11,12 +32,13 @@ jobs: strategy: fail-fast: false matrix: - java: [ '11', '17' ] + java: [ '11', '17', '21' ] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4.1.1 - name: Set up JDK ${{ matrix.java }} - uses: actions/setup-java@v1.4.3 + uses: actions/setup-java@v3.13.0 with: + distribution: 'temurin' java-version: ${{ matrix.java }} - name: "Maven install" run: |