-
Notifications
You must be signed in to change notification settings - Fork 878
53 lines (44 loc) · 1.44 KB
/
pr-smoke-test-fake-backend-images.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
name: PR build fake backend images for smoke tests
on:
pull_request:
paths:
- "smoke-tests/images/fake-backend/**"
- ".github/workflows/pr-smoke-test-fake-backend-images.yml"
jobs:
buildLinux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Free disk space
run: .github/scripts/gha-free-disk-space.sh
- name: Set up JDK for running Gradle
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17.0.6
- name: Build Docker image
uses: gradle/gradle-build-action@v2
with:
arguments: ":smoke-tests:images:fake-backend:jibDockerBuild -Djib.httpTimeout=120000 -Djib.console=plain"
cache-read-only: true
# gradle enterprise is used for the build cache
gradle-home-cache-excludes: caches/build-cache-1
buildWindows:
runs-on: windows-latest
defaults:
run:
shell: bash
steps:
- name: Support long paths
run: git config --system core.longpaths true
- uses: actions/checkout@v4
- name: Set up JDK for running Gradle
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17.0.6
- name: Build Docker image
uses: gradle/gradle-build-action@v2
with:
arguments: ":smoke-tests:images:fake-backend:windowsBackendImageBuild"
cache-read-only: true