-
Notifications
You must be signed in to change notification settings - Fork 334
103 lines (94 loc) · 2.4 KB
/
integrate-tiup.yaml
File metadata and controls
103 lines (94 loc) · 2.4 KB
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
95
96
97
98
99
100
101
102
103
---
name: integrate-tiup
on:
schedule:
# times are in UTC
- cron: '19 21 * * *'
pull_request:
branches:
- master
- release-*
- feature/*
paths-ignore:
- '**.html'
- '**.md'
- 'CNAME'
- 'LICENSE'
- 'doc/**'
- 'embed/templates/examples/**'
- '.github/workflows/integrate-cluster**'
- '.github/workflows/integrate-dm**'
- '.github/workflows/integrate-playground**'
push:
branches:
- master
paths-ignore:
- '**.html'
- '**.md'
- 'CNAME'
- 'LICENSE'
- 'doc/**'
- 'embed/templates/examples/**'
- '.github/workflows/integrate-cluster**'
- '.github/workflows/integrate-dm**'
- '.github/workflows/integrate-playground**'
jobs:
tiup:
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
cases:
- "test_tiup"
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
id: go
- name: Build build_tiup_test
run: |
export PATH=$PATH:$GOPATH/bin
sudo apt update
sudo apt-get install -y build-essential
make build_tiup_test
- name: Run test suite
id: test
run: |
export PATH=$PATH:$PWD/bin
echo $PATH
bash ./tests/tiup/${{ matrix.cases }}.sh
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
files: ./tests/tiup/cover/*out
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
unit-test:
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: 'go.mod'
id: go
- name: make unit-test
run: |
export PATH=$PATH:$GOPATH/bin
make check
make test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
files: cover/*.out
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}