build(deps): bump github.com/olekukonko/tablewriter from 0.0.5-0.20200416053754-163badb3bac6 to 0.0.5 #1665
Workflow file for this run
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
# DO NOT MODIFY: THIS FILE IS GENERATED USING "make generate_ci_workflows" | |
name: Unit Test (mysql57) | |
on: [push, pull_request] | |
concurrency: | |
group: format('{0}-{1}', ${{ github.ref }}, 'Unit Test (mysql57)') | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ubuntu-18.04 | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.17.12 | |
- name: Tune the OS | |
run: | | |
echo '1024 65535' | sudo tee -a /proc/sys/net/ipv4/ip_local_port_range | |
# TEMPORARY WHILE GITHUB FIXES THIS https://github.com/actions/virtual-environments/issues/3185 | |
- name: Add the current IP address, long hostname and short hostname record to /etc/hosts file | |
run: | | |
echo -e "$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)\t$(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts | |
# DON'T FORGET TO REMOVE CODE ABOVE WHEN ISSUE IS ADRESSED! | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Get dependencies | |
run: | | |
export DEBIAN_FRONTEND="noninteractive" | |
sudo apt-get update | |
# mysql57 | |
sudo apt-get install -y mysql-server mysql-client | |
sudo apt-get install -y make unzip g++ curl git wget ant openjdk-8-jdk eatmydata | |
sudo service mysql stop | |
sudo bash -c "echo '/usr/sbin/mysqld { }' > /etc/apparmor.d/usr.sbin.mysqld" # https://bugs.launchpad.net/ubuntu/+source/mariadb-10.1/+bug/1806263 | |
sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/ | |
sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld || echo "could not remove mysqld profile" | |
mkdir -p dist bin | |
curl -L https://github.com/coreos/etcd/releases/download/v3.3.10/etcd-v3.3.10-linux-amd64.tar.gz | tar -zxC dist | |
mv dist/etcd-v3.3.10-linux-amd64/{etcd,etcdctl} bin/ | |
go mod download | |
go install golang.org/x/tools/cmd/goimports@latest | |
- name: Run make tools | |
run: | | |
make tools | |
- name: Run test | |
uses: nick-fields/retry@v2 | |
with: | |
timeout_minutes: 30 | |
max_attempts: 3 | |
retry_on: error | |
command: | | |
eatmydata -- make unit_test |