-
Notifications
You must be signed in to change notification settings - Fork 755
47 lines (41 loc) · 1.33 KB
/
mysql-schema-check.yaml
File metadata and controls
47 lines (41 loc) · 1.33 KB
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
name: CI@mysql-schema-check
on:
push:
branches: ["main", "release/**"]
paths:
- 'release/deployment/docker-compose/bootstrap/mysql-init/**'
- 'release/deployment/helm-chart/charts/app/bootstrap/init/mysql/**'
- '.github/scripts/check-mysql-schema.sh'
- '.github/workflows/mysql-schema-check.yaml'
pull_request:
branches: ["main", "release/**"]
paths:
- 'release/deployment/docker-compose/bootstrap/mysql-init/**'
- 'release/deployment/helm-chart/charts/app/bootstrap/init/mysql/**'
- '.github/scripts/check-mysql-schema.sh'
- '.github/workflows/mysql-schema-check.yaml'
workflow_dispatch:
permissions:
contents: read
pull-requests: read
jobs:
mysql-schema-check:
name: MySQL Schema Consistency Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.24.0"
- name: Install schemadiff
run: |
go install github.com/planetscale/schemadiff/cmd/schemadiff@latest
echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH"
- name: Run MySQL Schema Check
env:
GITHUB_BASE_REF: ${{ github.base_ref }}
run: bash .github/scripts/check-mysql-schema.sh