Skip to content

Commit

Permalink
Continue on error
Browse files Browse the repository at this point in the history
  • Loading branch information
driv3r committed Sep 11, 2024
1 parent dd26480 commit 0a4e59c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/start-mysql.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
#!/bin/bash
set -xe

DOCKER_COMPOSE_VERSION=v2.2.3

sudo apt-get update
sudo apt-get install -y netcat-openbsd make gcc

sudo curl -o /usr/local/bin/docker-compose -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m`
sudo chmod +x /usr/local/bin/docker-compose

if [ "$MYSQL_VERSION" == "8.0" ]; then
docker-compose -f docker-compose_8.0.yml up -d mysql-1 mysql-2
docker compose -f docker-compose_8.0.yml up -d mysql-1 mysql-2
else
docker-compose up -d mysql-1 mysql-2
docker compose up -d mysql-1 mysql-2
fi

MAX_ATTEMPTS=60
Expand Down
18 changes: 13 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Ghostferry MySQL 8.0 tests
name: Ghostferry Tests

on:
push:
Expand All @@ -11,14 +11,17 @@ jobs:
strategy:
matrix:
mysql: ["5.7", "8.0"]

runs-on: ubuntu-latest
continue-on-error: true
timeout-minutes: 15

env:
CI: "true"
MYSQL_VERSION: ${{ matrix.mysql }}

steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version: 1.16
Expand All @@ -33,14 +36,17 @@ jobs:
strategy:
matrix:
mysql: ["5.7", "8.0"]

runs-on: ubuntu-latest
timeout-minutes: 15
continue-on-error: true

env:
CI: "true"
MYSQL_VERSION: ${{ matrix.mysql }}

steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version: 1.16
Expand All @@ -55,18 +61,21 @@ jobs:
strategy:
matrix:
mysql: ["5.7", "8.0"]

runs-on: ubuntu-latest
timeout-minutes: 15
continue-on-error: true

env:
CI: "true"
BUNDLE_WITHOUT: "development"
MYSQL_VERSION: ${{ matrix.mysql }}

steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.16

- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
Expand All @@ -85,7 +94,6 @@ jobs:
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v5
with:
go-version: 1.16
Expand Down

0 comments on commit 0a4e59c

Please sign in to comment.