Skip to content

chore(deps): update github actions (main) #10

chore(deps): update github actions (main)

chore(deps): update github actions (main) #10

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"
permissions:
contents: read
jobs:
buildLinux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Free disk space
run: .github/scripts/gha-free-disk-space.sh
- name: Set up JDK for running Gradle
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2
with:
distribution: temurin
java-version-file: .java-version
- name: Setup Gradle
uses: gradle/actions/setup-gradle@d9c87d481d55275bb5441eef3fe0e46805f9ef70 # v3.5.0
with:
cache-read-only: true
# gradle enterprise is used for the build cache
gradle-home-cache-excludes: caches/build-cache-1
- name: Build Docker image
run: ./gradlew :smoke-tests:images:fake-backend:jibDockerBuild -Djib.httpTimeout=120000 -Djib.console=plain
buildWindows:
runs-on: windows-latest
defaults:
run:
shell: bash
steps:
- name: Support long paths
run: git config --system core.longpaths true
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up JDK for running Gradle
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2
with:
distribution: temurin
java-version-file: .java-version
- name: Setup Gradle
uses: gradle/actions/setup-gradle@d9c87d481d55275bb5441eef3fe0e46805f9ef70 # v3.5.0
with:
cache-read-only: true
- name: Build Docker image
run: ./gradlew :smoke-tests:images:fake-backend:windowsBackendImageBuild