-
Notifications
You must be signed in to change notification settings - Fork 31
39 lines (35 loc) · 1.31 KB
/
continous-integration.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
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Continuous Integration
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: ['8', '11', '17'] #Support LTS releases 8, 11 and 17 and the latest release supported by Micronaut.
runtime: ['netty']
include: # Test more server runtimes on Java 8 only (to reduce number of combinations)
- java: '8'
runtime: 'jetty'
- java: '8'
runtime: 'tomcat'
- java: '8'
runtime: 'undertow'
steps:
- name: Git Checkout
uses: actions/checkout@v4
- name: Set up JDKs with Matrix Build
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
cache: 'gradle'
- name: Build with Gradle Wrapper
run: ./gradlew build --warning-mode=all -Pmicronaut.runtime=${{ matrix.runtime }} # value 'fail' would be better but the build even this breaks: "mn create-app mytest && cd mytest && ./gradlew clean build --warning-mode fail"