|
| 1 | +name: Tests against recent Docker engine releases |
| 2 | + |
| 3 | +on: |
| 4 | + schedule: |
| 5 | + # nightly build, at 23:59 CEST |
| 6 | + - cron: '59 23 * * *' |
| 7 | + |
| 8 | +jobs: |
| 9 | + test_stable_docker: |
| 10 | + name: "Core tests using stable Docker-CE" |
| 11 | + runs-on: ubuntu-22.04 |
| 12 | + steps: |
| 13 | + - uses: actions/checkout@v4 |
| 14 | + - uses: ./.github/actions/setup-build |
| 15 | + |
| 16 | + - name: Install Stable Docker |
| 17 | + run: curl https://get.docker.com |
| 18 | + |
| 19 | + - name: Check Docker version |
| 20 | + run: docker version |
| 21 | + |
| 22 | + - name: Build with Gradle |
| 23 | + run: ./gradlew cleanTest --no-daemon --continue --scan -Dscan.tag.DOCKER_STABLE testcontainers:test |
| 24 | + - uses: ./.github/actions/setup-junit-report |
| 25 | + |
| 26 | + - name: Notify to Slack on failures |
| 27 | + if: failure() |
| 28 | + id: slack |
| 29 | + |
| 30 | + with: |
| 31 | + payload: | |
| 32 | + { |
| 33 | + "tc_project": "testcontainers-java", |
| 34 | + "tc_github_action_url": "https://github.com/testcontainers/testcontainers-java/actions/runs/${{ env.GITHUB_RUN_ID }}/job/${{ env.GITHUB_RUN_NUMBER }}", |
| 35 | + "tc_github_action_status": "FAILED", |
| 36 | + "tc_slack_channel_id": "${{ secrets.SLACK_DOCKER_LATEST_CHANNEL_ID }}" |
| 37 | + } |
| 38 | + env: |
| 39 | + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_DOCKER_LATEST_WEBHOOK }} |
| 40 | + |
| 41 | + test_latest_docker: |
| 42 | + name: "Core tests using latest Docker-CE" |
| 43 | + runs-on: ubuntu-22.04 |
| 44 | + steps: |
| 45 | + - uses: actions/checkout@v4 |
| 46 | + - uses: ./.github/actions/setup-build |
| 47 | + |
| 48 | + - name: Install Latest Docker |
| 49 | + run: curl https://get.docker.com | CHANNEL=test sh |
| 50 | + |
| 51 | + - name: Check Docker version |
| 52 | + run: docker version |
| 53 | + |
| 54 | + - name: Build with Gradle |
| 55 | + run: ./gradlew cleanTest --no-daemon --continue --scan -Dscan.tag.DOCKER_LATEST testcontainers:test |
| 56 | + |
| 57 | + - uses: ./.github/actions/setup-junit-report |
| 58 | + |
| 59 | + - name: Notify to Slack on failures |
| 60 | + if: failure() |
| 61 | + id: slack |
| 62 | + |
| 63 | + with: |
| 64 | + payload: | |
| 65 | + { |
| 66 | + "tc_project": "testcontainers-java", |
| 67 | + "tc_github_action_url": "https://github.com/testcontainers/testcontainers-java/actions/runs/${{ env.GITHUB_RUN_ID }}/job/${{ env.GITHUB_RUN_NUMBER }}", |
| 68 | + "tc_github_action_status": "FAILED", |
| 69 | + "tc_slack_channel_id": "${{ secrets.SLACK_DOCKER_LATEST_CHANNEL_ID }}" |
| 70 | + } |
| 71 | + env: |
| 72 | + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_DOCKER_LATEST_WEBHOOK }} |
0 commit comments