Skip to content

Commit

Permalink
[TASK] Add CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrodala committed Jun 28, 2024
1 parent 0f0c306 commit e290262
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
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 --wait 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
if: ${{ always() }}
run: docker compose down -rmi --volumes

0 comments on commit e290262

Please sign in to comment.