-
Notifications
You must be signed in to change notification settings - Fork 78
40 lines (37 loc) · 1.06 KB
/
ci-actions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Jakarta Contexts and Dependency Injection CI
on:
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
build:
name: "Build CDI - JDK ${{matrix.java}}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: [ '11', '17', '21' ]
steps:
- uses: actions/[email protected]
- name: Set up JDK ${{ matrix.java }}
uses: actions/[email protected]
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- if: ${{ matrix.java != '11' }}
name: "Maven install > 11"
run: |
mvn -Pstaging install -DskipTests=true -Dno-format -B -V
- if: ${{ matrix.java == '11' }}
name: "Maven install 11"
run: |
mvn -Pstaging -pl '!el' install -DskipTests=true -Dno-format -B -V
- if: ${{ matrix.java != '11' }}
name: "Maven test > 11"
run: |
mvn -Pstaging test -B
- if: ${{ matrix.java == '11' }}
name: "Maven test 11"
run: |
mvn -Pstaging -pl '!el' test -B