-
Notifications
You must be signed in to change notification settings - Fork 83
41 lines (35 loc) · 920 Bytes
/
main.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
name: GiftCard Demo
on:
pull_request:
push:
branches:
- main
- master
paths-ignore:
- 'docs/**'
- '.github/workflows/docs.yml'
jobs:
build:
name: Test and Build on JDK ${{ matrix.java-version }}
runs-on: ubuntu-latest
continue-on-error: true # do not fail the whole job if one of the steps fails
strategy:
matrix:
include:
- java-version: 17
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: ${{ matrix.java-version }}
cache: "maven"
server-id: sonatype
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Build
run: |
./mvnw -B -U clean verify