-
Notifications
You must be signed in to change notification settings - Fork 90
66 lines (65 loc) · 1.76 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Build
on:
pull_request:
branches:
- master
paths:
- 'powertools-core/**'
- 'powertools-logging/**'
- 'powertools-sqs/**'
- 'powertools-tracing/**'
- 'powertools-validation/**'
- 'powertools-parameters/**'
- 'powertools-metrics/**'
- 'pom.xml'
- '.github/workflows/**'
push:
branches:
- master
paths:
- 'powertools-core/**'
- 'powertools-logging/**'
- 'powertools-sqs/**'
- 'powertools-tracing/**'
- 'powertools-validation/**'
- 'powertools-parameters/**'
- 'powertools-metrics/**'
- 'pom.xml'
- '.github/workflows/**'
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
# test against latest update of each major Java version, as well as specific updates of LTS versions:
java: [8, 8.0.192, 11.0.x, 11.0.3, 12, 13, 15, 16 ]
name: Java ${{ matrix.java }}
env:
OS: ${{ matrix.os }}
JAVA: ${{ matrix.java-version }}
AWS_REGION: eu-west-1
steps:
- uses: actions/checkout@v2
- name: Setup java
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: Build with Maven
run: mvn -Pbuild-without-spotbugs -B package --file pom.xml
savepr:
runs-on: ubuntu-latest
name: Save PR number if running on PR by dependabot
if: github.actor == 'dependabot[bot]'
steps:
- name: Create Directory and save issue
run: |
mkdir -p ./pr
echo ${{ github.event.number }}
echo ${{ github.event.number }} > ./pr/NR
- uses: actions/upload-artifact@v2
name: Updload artifact
with:
name: pr
path: pr/