forked from vitessio/vitess
-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (43 loc) · 1.35 KB
/
local_example.yml
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
name: local_example
on: [push, pull_request]
jobs:
build:
name: Local Example on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13
- name: Check out code
uses: actions/checkout@v2
- name: Get dependencies
run: |
if [ ${{matrix.os}} = "ubuntu-latest" ]; then
sudo apt-get update
sudo apt-get install -y mysql-server mysql-client make unzip g++ etcd curl git wget eatmydata
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
elif [ ${{matrix.os}} = "macos-latest" ]; then
brew install [email protected] make unzip etcd curl git wget
fi
go mod download
- name: Run make minimaltools
run: |
make minimaltools
- name: Build
run: |
make build
- name: local_example
run: |
if [ ${{matrix.os}} = "macos-latest" ]; then
export PATH="/usr/local/opt/[email protected]/bin:$PATH"
fi
# Make sure that testing is entirely non-reliant on config
mv config config-moved
eatmydata -- test/local_example.sh