generated from cybozu-go/neco-template
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
- Loading branch information
Showing
2 changed files
with
75 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: Weekly E2E | ||
|
||
on: | ||
schedule: | ||
# 11:00 (JST) | ||
- cron: '0 2 * * 1' | ||
|
||
env: | ||
cache-version: 1 | ||
|
||
# Weekly E2E tests using all MySQL versions supported by MOCO | ||
jobs: | ||
dbtest: | ||
name: Integration tests with MySQL | ||
strategy: | ||
matrix: | ||
mysql-version: ["8.0.18", "8.0.25", "8.0.26", "8.0.27", "8.0.28", "8.0.30"] | ||
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.30"] | ||
k8s-version: ["1.22.9", "1.23.6", "1.24.2"] | ||
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.18", "8.0.25", "8.0.26", "8.0.27", "8.0.28", "8.0.30"] | ||
k8s-version: ["1.24.2"] | ||
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 | ||
- 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 |