2021-02-07 02:46:39 +03:00
|
|
|
# DO NOT MODIFY: THIS FILE IS GENERATED USING "make generate_ci_workflows"
|
2021-02-05 23:05:29 +03:00
|
|
|
|
2021-01-06 17:25:50 +03:00
|
|
|
name: Cluster (12)
|
2019-11-07 22:20:39 +03:00
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
2021-01-12 22:17:34 +03:00
|
|
|
name: Run endtoend tests on Cluster (12)
|
2021-03-05 05:18:58 +03:00
|
|
|
runs-on: ubuntu-18.04
|
2019-11-07 22:20:39 +03:00
|
|
|
|
2019-12-31 23:15:39 +03:00
|
|
|
steps:
|
2019-11-07 22:20:39 +03:00
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v1
|
|
|
|
with:
|
2021-01-07 16:17:51 +03:00
|
|
|
go-version: 1.15
|
2019-11-07 22:20:39 +03:00
|
|
|
|
|
|
|
- name: Check out code
|
2019-12-17 19:26:12 +03:00
|
|
|
uses: actions/checkout@v2
|
2019-11-07 22:20:39 +03:00
|
|
|
|
|
|
|
- name: Get dependencies
|
|
|
|
run: |
|
2019-12-13 17:55:19 +03:00
|
|
|
sudo apt-get update
|
2020-02-07 13:58:55 +03:00
|
|
|
sudo apt-get install -y mysql-server mysql-client make unzip g++ etcd curl git wget eatmydata
|
2019-11-07 22:20:39 +03:00
|
|
|
sudo service mysql stop
|
|
|
|
sudo service etcd stop
|
|
|
|
sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
|
|
|
|
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
|
|
|
|
go mod download
|
2021-01-06 17:25:50 +03:00
|
|
|
|
2020-01-29 21:19:46 +03:00
|
|
|
wget https://repo.percona.com/apt/percona-release_latest.$(lsb_release -sc)_all.deb
|
|
|
|
sudo apt-get install -y gnupg2
|
|
|
|
sudo dpkg -i percona-release_latest.$(lsb_release -sc)_all.deb
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install percona-xtrabackup-24
|
2020-02-10 07:07:01 +03:00
|
|
|
|
2021-01-06 17:25:50 +03:00
|
|
|
- name: Run cluster endtoend test
|
2020-03-26 00:12:03 +03:00
|
|
|
timeout-minutes: 30
|
2019-11-07 22:20:39 +03:00
|
|
|
run: |
|
2019-12-26 09:19:10 +03:00
|
|
|
source build.env
|
2021-01-06 17:25:50 +03:00
|
|
|
eatmydata -- go run test.go -docker=false -print-log -follow -shard 12
|