generated from cybozu-go/neco-template
-
Notifications
You must be signed in to change notification settings - Fork 22
112 lines (104 loc) · 3 KB
/
ci-e2e.yaml
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
104
105
106
107
108
109
110
111
112
name: E2E CI
on:
push:
branches: [main]
tags: ["v*"]
pull_request:
types: [opened, synchronize]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
cache-version: 1
# CI tests with supported MySQL version.
jobs:
dbtest:
name: Integration tests with MySQL
strategy:
matrix:
mysql-version: ["8.0.28", "8.0.36", "8.0.37", "8.0.39", "8.4.2"]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Check and output changed files
uses: tj-actions/changed-files@a29e8b565651ce417abb5db7164b4a2ad8b6155c # v44.4.0
id: changed-files
with:
files_ignore: |
**/*.md
containers/**
- uses: ./.github/actions/dbtest
with:
mysql-version: ${{ matrix.mysql-version }}
if: steps.changed-files.outputs.any_changed == 'true'
e2e:
name: Supported Kubernetes versions End-to-End Tests
strategy:
matrix:
mysql-version: ["8.4.2"]
k8s-version: ["1.29.4", "1.30.4", "1.31.0"]
runs-on:
group: moco
steps:
- uses: actions/checkout@v4
- name: Check and output changed files
uses: tj-actions/changed-files@a29e8b565651ce417abb5db7164b4a2ad8b6155c # v44.4.0
id: changed-files
with:
files_ignore: |
**/*.md
containers/**
- uses: ./.github/actions/e2e
with:
k8s-version: ${{ matrix.k8s-version }}
mysql-version: ${{ matrix.mysql-version }}
name: k8s-version-e2e
if: steps.changed-files.outputs.any_changed == 'true'
e2e-mysql:
name: Supported MySQL versions End-to-End Tests
strategy:
matrix:
mysql-version: ["8.0.28", "8.0.36", "8.0.37", "8.0.39", "8.4.2"]
k8s-version: ["1.31.0"]
runs-on:
group: moco
steps:
- uses: actions/checkout@v4
- name: Check and output changed files
uses: tj-actions/changed-files@a29e8b565651ce417abb5db7164b4a2ad8b6155c # v44.4.0
id: changed-files
with:
files_ignore: |
**/*.md
containers/**
- uses: ./.github/actions/e2e
if: steps.changed-files.outputs.any_changed == 'true'
with:
k8s-version: ${{ matrix.k8s-version }}
mysql-version: ${{ matrix.mysql-version }}
name: mysql-version-e2e
upgrade:
name: Upgrade Test
runs-on:
group: moco
steps:
- uses: actions/checkout@v4
- name: Check and output changed files
uses: tj-actions/changed-files@a29e8b565651ce417abb5db7164b4a2ad8b6155c # v44.4.0
id: changed-files
with:
files_ignore: |
**/*.md
containers/**
- uses: ./.github/actions/upgrade
if: steps.changed-files.outputs.any_changed == 'true'
finish-e2e:
name: Confirm finishing all tests
runs-on: ubuntu-22.04
needs:
- dbtest
- e2e
- e2e-mysql
- upgrade
steps:
- run: echo "OK"