Skip to content

Commit 1b67540

Browse files
author
Andrew Omondi
committed
chore: validate ci artifacts
1 parent cc91118 commit 1b67540

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

.github/workflows/api-level-lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717
distribution: 'temurin'
1818
java-version: 21
1919
cache: gradle
20+
- name: move sources for build
21+
run: .\scripts\copyFilesOnBuild.ps1 -inputPath '.\src\main\java\com\microsoft\graph\generated'
22+
shell: pwsh
2023
- name: Setup Android SDK
2124
uses: android-actions/[email protected]
2225
- name: Add execution right to the script

.github/workflows/gradle-build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
2222
run: |
2323
pip install detect-secrets
2424
git ls-files -z | xargs -0 detect-secrets-hook --baseline .secrets.baseline
25+
- name: move sources for build
26+
run: .\scripts\copyFilesOnBuild.ps1 -inputPath '.\src\main\java\com\microsoft\graph\generated'
27+
shell: pwsh
2528
- name: Grant Execute permission for gradlew
2629
run: chmod +x gradlew
2730
- name: Build with Gradle
@@ -60,6 +63,9 @@ jobs:
6063
java-version: 8
6164
distribution: 'temurin'
6265
cache: gradle
66+
- name: move sources for build
67+
run: .\scripts\copyFilesOnBuild.ps1 -inputPath '.\src\main\java\com\microsoft\graph\generated'
68+
shell: pwsh
6369
- name: Grant Execute permission for gradlew
6470
run: chmod +x gradlew
6571
- name: Build with Java 8

.github/workflows/preview-and-release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ jobs:
3737
java-version: ${{ env.JAVA_VERSION }}
3838
distribution: ${{ env.JAVA_DISTRIBUTION}}
3939
cache: gradle
40+
- name: move sources for build
41+
run: .\scripts\copyFilesOnBuild.ps1 -inputPath '.\src\main\java\com\microsoft\graph\generated'
42+
shell: pwsh
4043
- name: Detect secrets
4144
run: |
4245
pip install detect-secrets
@@ -76,6 +79,9 @@ jobs:
7679
run: |
7780
pip install detect-secrets
7881
git ls-files -z | xargs -0 detect-secrets-hook --baseline .secrets.baseline
82+
- name: move sources for build
83+
run: .\scripts\copyFilesOnBuild.ps1 -inputPath '.\src\main\java\com\microsoft\graph\generated'
84+
shell: pwsh
7985
- name: Download File
8086
run: .\scripts\decodeAndWrite.ps1 -encodedValue $env:ENCODED_VALUE -outputPath $env:OUTPUT_PATH
8187
shell: pwsh
@@ -129,6 +135,9 @@ jobs:
129135
java-version: ${{ env.JAVA_VERSION }}
130136
distribution: ${{ env.JAVA_DISTRIBUTION}}
131137
cache: gradle
138+
- name: move sources for build
139+
run: .\scripts\copyFilesOnBuild.ps1 -inputPath '.\src\main\java\com\microsoft\graph\generated'
140+
shell: pwsh
132141
- name: Download file
133142
run: .\scripts\decodeAndWrite.ps1 -encodedValue $env:ENCODED_VALUE -outputPath $env:OUTPUT_PATH
134143
shell: pwsh

0 commit comments

Comments
 (0)