-
Notifications
You must be signed in to change notification settings - Fork 5.8k
94 lines (91 loc) · 2.44 KB
/
integration-test-dumpling.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: Dumpling
on:
workflow_dispatch:
inputs:
debug:
type: boolean
description: "Run the build with tmate debugging enabled"
required: false
default: false
push:
branches:
- master
- release-*
paths:
- "dumpling/**"
- "br/pkg/storage/**"
- "br/pkg/utils/**"
- "br/pkg/summary/**"
- 'br/pkg/version/**'
- "store/helper/**"
- "tablecodec/**"
- "util/codec/**"
- "parser/model/**"
pull_request:
branches:
- master
- release-*
paths:
- 'dumpling/**'
- 'br/pkg/storage/**'
- 'br/pkg/utils/**'
- 'br/pkg/summary/**'
- 'br/pkg/version/**'
- 'store/helper/**'
- 'tablecodec/**'
- 'util/codec/**'
- 'parser/model/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
integration-test:
strategy:
fail-fast: true
matrix:
mysql_version:
- 5.7.35
- 8.0.22
- 8.0.26
- 8.0.37
runs-on: ubuntu-latest
timeout-minutes: 15
services:
mysql:
image: mysql:${{ matrix.mysql_version }}
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- name: "checkout repository"
uses: actions/checkout@v4
- name: "set up golang"
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: "try to use build cache"
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
~/Library/Caches/go-build
~\AppData\Local\go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: "download binary dependencies"
run: sh dumpling/install.sh
- name: "build tidb"
run: make server
- name: "build lightning"
run: make build_lightning
- name: "integration test"
run: make dumpling_integration_test VERBOSE="true"
- name: "set up tmate session if necessary"
if: ${{ failure() && github.event_name == 'workflow_dispatch' && github.event.inputs.debug }}
uses: mxschmitt/action-tmate@v3