File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed
Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 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+ 51+ with :
52+ payload-file-path : " ./payload-slack-content.json"
53+ env :
54+ SLACK_WEBHOOK_URL : ${{ secrets.SLACK_DOCKER_LATEST_WEBHOOK }}
You can’t perform that action at this time.
0 commit comments