Skip to content

Commit 774ebcf

Browse files
authored
Merge branch 'main' into main
2 parents 1c4824b + 88af617 commit 774ebcf

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Tests against Latest Docker Moby
2+
3+
on:
4+
schedule:
5+
# nightly build, at 23:59 CEST
6+
- cron: '59 23 * * *'
7+
8+
jobs:
9+
test_latest_moby:
10+
name: "Core tests using latest moby/moby"
11+
runs-on: 'ubuntu-latest'
12+
steps:
13+
- name: Check out code into the Go module directory
14+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5
18+
with:
19+
go-version-file: 'go.mod'
20+
cache-dependency-path: 'go.sum'
21+
id: go
22+
23+
- name: modVerify
24+
run: go mod verify
25+
26+
- name: modTidy
27+
run: go mod tidy
28+
29+
- name: Install Latest Docker
30+
run: curl https://get.docker.com | CHANNEL=test sh
31+
32+
- name: go test
33+
timeout-minutes: 30
34+
run: make test-unit
35+
36+
- name: Create slack payload file
37+
if: failure()
38+
run: |
39+
cat <<EOF > ./payload-slack-content.json
40+
{
41+
"tc_project": "testcontainers-go",
42+
"tc_github_action_url": "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}/attempts/${GITHUB_RUN_ATTEMPT}",
43+
"tc_github_action_status": "FAILED",
44+
"tc_slack_channel_id": "${{ secrets.SLACK_DOCKER_LATEST_CHANNEL_ID }}"
45+
}
46+
47+
- name: Notify to Slack on failures
48+
if: failure()
49+
id: slack
50+
uses: slackapi/[email protected]
51+
with:
52+
payload-file-path: "./payload-slack-content.json"
53+
env:
54+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_DOCKER_LATEST_WEBHOOK }}

0 commit comments

Comments
 (0)