-
Notifications
You must be signed in to change notification settings - Fork 15
51 lines (49 loc) · 1.14 KB
/
build.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
41
42
43
44
45
46
47
48
49
50
51
name: build
on:
push:
branches:
- main
- develop
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
pull_request:
types:
- opened
- reopened
- synchronize
schedule:
- cron: '0 9 * * 3'
workflow_dispatch:
jobs:
test:
name: test-${{matrix.distribution}}-${{matrix.version}}
runs-on: ubuntu-latest
strategy:
matrix:
name:
- jdk8
- jdk11
include:
- name: jdk8
version: 8
distribution: temurin
- name: jdk11
version: 11
distribution: temurin
- name: jdk16
version: 16
distribution: temurin
- name: jdk17
version: 17
distribution: temurin
steps:
- name: checkout-${{matrix.name}}
uses: actions/checkout@v2
- name: setup-toolchain-${{matrix.name}}
uses: actions/setup-java@v2
with:
java-version: ${{matrix.version}}
distribution: ${{matrix.distribution}}
cache: maven
- name: verify-${{matrix.name}}
run: mvn verify --settings .settings.xml -Dgpg.skip -B -V