forked from opentibiabr/canary
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (42 loc) · 1.14 KB
/
mysql-schema-check.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
# ---
# name: MySQL Schema Check
# on:
# workflow_dispatch:
# pull_request:
# types: [opened, synchronize, reopened, ready_for_review]
# paths:
# - "schema.sql"
# merge_group:
# push:
# paths:
# - "schema.sql"
# branches:
# - main
# jobs:
# mysql-schema-check:
# runs-on: ubuntu-latest
# services:
# mysql:
# image: mysql:8.0
# env:
# MYSQL_ROOT_PASSWORD: root
# MYSQL_DATABASE: canary
# MYSQL_USER: canary
# MYSQL_PASSWORD: canary
# ports:
# - 3306/tcp
# options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
# strategy:
# fail-fast: false
# name: Check
# steps:
# - name: Checkout repository
# uses: actions/checkout@main
# - name: 📌 MySQL Start & init & show db
# run: |
# sudo /etc/init.d/mysql start
# mysql -e 'CREATE DATABASE canary;' -uroot -proot
# mysql -e "SHOW DATABASES" -uroot -proot
# - name: Import Canary Schema
# run: |
# mysql -uroot -proot canary < schema.sql