forked from apache/incubator-devlake
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (45 loc) · 1.1 KB
/
test-e2e.yml
File metadata and controls
45 lines (45 loc) · 1.1 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
# This action run e2e test for pull requests
name: test-e2e
on:
pull_request:
branches: [ main ]
paths:
- '**.go'
- 'Makefile'
- 'go.mod'
- 'go.sum'
- '.github/workflows/*.yml'
- 'test/**'
- 'e2e/**'
- 'devops/**'
- 'config-ui/**'
jobs:
e2e-mysql:
runs-on: ubuntu-latest
services:
db:
image: mysql:8.0.26
env:
MYSQL_DATABASE: lake
MYSQL_USER: merico
MYSQL_PASSWORD: merico
MYSQL_ROOT_PASSWORD: root
container: mericodev/lake-builder:v0.0.5
steps:
- uses: actions/checkout@v3
- name: Cache test-e2e
id: cache-test-e2e
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Test
env:
DB_URL: mysql://root:root@db:3306/lake?charset=utf8mb4&loc=Asia%2fShanghai&parseTime=True
run: |
cp .env.example .env
make e2e-test