-
Notifications
You must be signed in to change notification settings - Fork 135
46 lines (43 loc) · 1.82 KB
/
maven-build-2.x.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
# SPDX-FileCopyrightText: 2018-2023 SAP SE or an SAP affiliate company and Cloud Security Client Java contributors
# SPDX-License-Identifier: Apache-2.0
---
name: Maven Build main-2.x
on:
push:
branches: [ main-2.x ]
pull_request:
branches: [ main-2.x ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [ 8, 11 ]
name: Build with Java ${{ matrix.java-version }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: ${{ matrix.java-version }}
- name: Build with Maven
run: mvn -B install --file pom.xml
- name: Run integration tests
run: cd java-security-it; mvn -B package --file pom.xml
- name: Build spring-security-basic-auth
run: cd samples/spring-security-basic-auth; mvn -B package --file pom.xml
- name: Build spring-security-xsuaa-usage
run: cd samples/spring-security-xsuaa-usage; mvn -B package --file pom.xml
- name: Build spring-webflux-security-xsuaa-usage
run: cd samples/spring-webflux-security-xsuaa-usage; mvn -B package --file pom.xml
- name: Build java-security-usage
run: cd samples/java-security-usage; mvn -B package --file pom.xml
- name: Build sap-java-buildpack-api-usage
run: cd samples/sap-java-buildpack-api-usage; mvn -B package --file pom.xml
- name: Build java-tokenclient-usage
run: cd samples/java-tokenclient-usage; mvn -B package --file pom.xml
- name: Build java-security-usage-ias
run: cd samples/java-security-usage-ias; mvn -B package --file pom.xml
- name: Build spring-security-hybrid-usage
run: cd samples/spring-security-hybrid-usage; mvn -B package --file pom.xml