forked from Azure-Samples/azure-spring-boot-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 1.45 KB
/
maven_sparse_checkout.yml
File metadata and controls
44 lines (39 loc) · 1.45 KB
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
# 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 Run with Sparse Checkout
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- run: |
git init azure-sdk-for-java
cd azure-sdk-for-java
git remote add origin https://github.com/Azure/azure-sdk-for-java.git
git config core.sparsecheckout true
echo "sdk/spring" >> .git/info/sparse-checkout
echo "eng" >> .git/info/sparse-checkout
echo "sdk/keyvault" >> .git/info/sparse-checkout
echo "sdk/boms" >> .git/info/sparse-checkout
git pull --depth=1 origin feature/azure-spring-cloud-4.0
mvn clean install -Dmaven.javadoc.skip=true -DskipTests \
-Dcheckstyle.skip=true \
-ntp \
-Dspotbugs.skip=true \
-Drevapi.skip=true -Djacoco.skip=true \
-Dparallel-test-playback \
-Pdev \
-f sdk/spring/pom.xml
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml