Initialize setup #1
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
name: CI | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- '*' | |
pull_request: | |
branches: | |
- master | |
schedule: | |
- cron: '0 7 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./test | |
env: | |
BUILD_IMAGE_TAG: ${{ github.run_id }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build & Start | |
run: docker compose up --detach mysql | |
- name: Dump & Diff | |
env: | |
MYSQL_PWD: root | |
run: > | |
docker compose exec mysql | |
mysqldump | |
--compact | |
--skip-extended-insert | |
db | |
| | |
diff --unified expected.sql - | |
- name: Cleanup | |
run: docker compose down -rmi --volumes |