forked from faiqsohail/ProxyChecker
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (25 loc) · 942 Bytes
/
maven.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
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
jobs:
build:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
jdk: [ 18.0.1+10, 18.0.0+36, 17.0.3+7, 17.0.2+8, 17.0.1+12, 17.0.0+35, 16.0.2+7, 11.0.15+10, 11.0.14+101, 11.0.14+9, 11.0.13+8, 11.0.12+7 ]
steps:
- uses: actions/checkout@v3
- name: Set up JDK 18/17/16/11
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{matrix.jdk}}
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml