Skip to content

Commit

Permalink
GHA: use docker images as databases 16
Browse files Browse the repository at this point in the history
  • Loading branch information
back-2-95 committed Nov 27, 2024
1 parent 41733df commit 462b694
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,6 @@ jobs:

steps:

- name: Setup mysqldump
run: |
shopt -s expand_aliases
alias mysqldump='docker exec db mysqldump'
mysqldump --version
- name: Checkout code
uses: actions/checkout@v4
with:
Expand All @@ -103,11 +97,12 @@ jobs:
- name: Run PHPunit tests
run: vendor/bin/phpunit

- name: Get mysqldump version
run: mysqldump --version

- name: Create user and databases for testing
run: cat docker-entrypoint-initdb.d/${{ matrix.database }}-init.sql | mysql -h127.0.0.1 -uroot -pexample

- name: Run test script
run: cd tests/scripts && ./test.sh 127.0.0.1
run: |
shopt -s expand_aliases
alias mysqldump='docker exec db mysqldump'
mysqldump --version
cd tests/scripts && ./test.sh 127.0.0.1

0 comments on commit 462b694

Please sign in to comment.