generated from cybozu-go/neco-template
-
Notifications
You must be signed in to change notification settings - Fork 22
81 lines (75 loc) · 2.17 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
name: E2E CI
on:
push:
branches: [main]
tags: ["v*"]
paths-ignore:
- '**.md'
- "containers/**"
pull_request:
types: [opened, synchronize]
paths-ignore:
- '**.md'
- "containers/**"
env:
cache-version: 1
# CI tests with the Cybozu internal use version plus the latest and one previous MySQL version.
# Other MySQL supported versions tested weekly.
# see: weekly.yaml
#
# NOTE: Current Cybozu internal use version is 8.0.28.
jobs:
dbtest:
name: Integration tests with MySQL
strategy:
matrix:
mysql-version: ["8.0.28", "8.0.33", "8.0.34"]
uses: ./.github/workflows/dbtest.yaml
with:
mysql-version: ${{ matrix.mysql-version }}
e2e:
name: Supported Kubernetes versions End-to-End Tests
strategy:
matrix:
mysql-version: ["8.0.34"]
k8s-version: ["1.25.9", "1.26.4", "1.27.1"]
uses: ./.github/workflows/e2e.yaml
with:
k8s-version: ${{ matrix.k8s-version }}
mysql-version: ${{ matrix.mysql-version }}
e2e-mysql:
name: Supported MySQL versions End-to-End Tests
strategy:
matrix:
mysql-version: ["8.0.28", "8.0.33", "8.0.34"]
k8s-version: ["1.27.1"]
uses: ./.github/workflows/e2e.yaml
with:
k8s-version: ${{ matrix.k8s-version }}
mysql-version: ${{ matrix.mysql-version }}
upgrade:
name: Upgrade Test
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version-file: go.mod
cache: true
- run: |
swapon > swapon.txt
sudo swapoff -a
cat swapon.txt | tail -n+2 | awk '$2=="file" {print $1}' | sudo xargs --no-run-if-empty rm
- run: sudo mkdir /mnt/local-path-provisioner0 /mnt/local-path-provisioner1 /mnt/local-path-provisioner2
- run: make start KIND_CONFIG=kind-config_actions.yaml
working-directory: e2e
- run: make test-upgrade
working-directory: e2e
- run: make logs
working-directory: e2e
if: always()
- uses: actions/upload-artifact@v3
if: always()
with:
name: logs-upgrade.tar.gz
path: e2e/logs.tar.gz