pr-smoke-test-servlet-images.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. name: PR build Servlet images for smoke tests
  2. on:
  3. pull_request:
  4. paths:
  5. - "smoke-tests/images/servlet/**"
  6. - ".github/workflows/pr-smoke-test-servlet-images.yml"
  7. jobs:
  8. build:
  9. runs-on: ${{ matrix.os }}
  10. strategy:
  11. matrix:
  12. os:
  13. - windows-latest
  14. - ubuntu-latest
  15. smoke-test-server:
  16. - jetty
  17. - liberty
  18. - payara
  19. - tomcat
  20. - tomee
  21. - websphere
  22. - wildfly
  23. exclude:
  24. - os: windows-latest
  25. smoke-test-server: websphere
  26. fail-fast: false
  27. steps:
  28. - name: Support long paths
  29. run: git config --system core.longpaths true
  30. if: matrix.os == 'windows-latest'
  31. - uses: actions/checkout@v4
  32. - name: Free disk space
  33. run: .github/scripts/gha-free-disk-space.sh
  34. - name: Set up JDK for running Gradle
  35. uses: actions/setup-java@v4
  36. with:
  37. distribution: temurin
  38. java-version-file: .java-version
  39. - name: Set up Gradle cache
  40. uses: gradle/actions/setup-gradle@d9336dac04dea2507a617466bc058a3def92b18b # v3.4.0
  41. with:
  42. cache-read-only: true
  43. - name: Build Linux docker images
  44. if: matrix.os != 'windows-latest'
  45. run: ./gradlew :smoke-tests:images:servlet:buildLinuxTestImages -PsmokeTestServer=${{ matrix.smoke-test-server }}
  46. - name: Build Windows docker images
  47. if: matrix.os == 'windows-latest'
  48. run: ./gradlew :smoke-tests:images:servlet:buildWindowsTestImages -PsmokeTestServer=${{ matrix.smoke-test-server }}