Skip to content

Commit

Permalink
add sql migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptouuuu committed Sep 29, 2024
1 parent 4d25fe8 commit dc90b81
Show file tree
Hide file tree
Showing 12 changed files with 746 additions and 2 deletions.
23 changes: 22 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,16 @@ jobs:
os: [ubuntu-latest, macOS-latest]
php-version: ['8.2', '8.3']
dependencies: ['lowest', 'highest']
mariadb: ['10', '11']
name: BlackBox
services:
mariadb:
image: mariadb:${{ matrix.mariadb }}
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: example
ports:
- 3306
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -26,14 +35,25 @@ jobs:
dependency-versions: ${{ matrix.dependencies }}
- name: BlackBox
run: php blackbox.php
env:
DB_PORT: ${{ job.services.mariadb.ports[3306] }}
coverage:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
php-version: ['8.2', '8.3']
dependencies: ['lowest', 'highest']
name: BlackBox
mariadb: ['10', '11']
name: Coverage
services:
mariadb:
image: mariadb:${{ matrix.mariadb }}
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: example
ports:
- 3306
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -51,6 +71,7 @@ jobs:
run: php blackbox.php
env:
ENABLE_COVERAGE: 'true'
DB_PORT: ${{ job.services.mariadb.ports[3306] }}
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"issues": "http://github.com/formal-php/migrations/issues"
},
"require": {
"php": "~8.2"
"php": "~8.2",
"innmind/operating-system": "~5.2",
"formal/orm": "~3.3"
},
"autoload": {
"psr-4": {
Expand Down
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
services:
mariadb:
image: mariadb:10
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: example
ports:
- '3306:3306'
Empty file removed proofs/.gitkeep
Empty file.
Loading

0 comments on commit dc90b81

Please sign in to comment.