Skip to content

Commit fcf68c9

Browse files
committed
feat(ci): test init cluster and users
1 parent fd0d315 commit fcf68c9

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

.github/workflows/e2e_install.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: E2E test install
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'Desired release version'
8+
required: false
9+
type: string
10+
11+
jobs:
12+
init:
13+
runs-on: self-hosted
14+
steps:
15+
- name: Set up Go
16+
uses: actions/setup-go@v2
17+
with:
18+
go-version: 1.16
19+
20+
- name: Check out source code
21+
uses: actions/checkout@v1
22+
23+
- name: Clean up
24+
run: |
25+
go test test/e2e/e2e_test.go -test.v --ginkgo.focus="clean"
26+
27+
- name: Prepare
28+
run: |
29+
go test test/e2e/e2e_test.go -test.v --ginkgo.focus="prepare"
30+
31+
- name: Test install operator
32+
run: |
33+
go test test/e2e/e2e_test.go -test.v --ginkgo.focus="install operator" -expected-version=${{ inputs.version }}
34+
35+
- name: Test install mysql cluster
36+
run: |
37+
go test test/e2e/e2e_test.go -test.v --ginkgo.focus="install cluster" --ginkgo.label-filter=asset -timeout 20m
38+
39+
- name: Test login default users
40+
run: |
41+
go test test/e2e/e2e_test.go -test.v --ginkgo.focus="login"
42+
43+
- name: Test create user
44+
run: |
45+
go test test/e2e/e2e_test.go -test.v --ginkgo.focus="create user"
46+
47+
cleanup:
48+
runs-on: self-hosted
49+
needs: init
50+
if: ${{ always() }}
51+
steps:
52+
- name: Set up Go
53+
uses: actions/setup-go@v2
54+
with:
55+
go-version: 1.16
56+
57+
- name: Check out source code
58+
uses: actions/checkout@v1
59+
60+
- name: Clean up
61+
run: |
62+
go test test/e2e/e2e_test.go -test.v --ginkgo.focus="clean"

0 commit comments

Comments
 (0)