Skip to content

Commit

Permalink
Add MySQL database and env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Feb 19, 2024
1 parent cc8c5bc commit 73d2bc5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/code-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ jobs:
run: composer fix-cs
name: ${{ matrix.actions.name }}
runs-on: ubuntu-latest
env:
CRAFT_DB_DRIVER: mysql
CRAFT_DB_SERVER: db
CRAFT_DB_PORT: 3306
CRAFT_DB_DATABASE: db
CRAFT_DB_USER: db
CRAFT_DB_PASSWORD: db
steps:
- uses: actions/checkout@v4
- name: Cache Composer dependencies
Expand All @@ -40,4 +47,8 @@ jobs:
tools: composer:v2
- name: Install Composer dependencies
run: composer install --no-interaction --no-ansi --no-progress
- name: Set up MySQL
run: |
sudo /etc/init.d/mysql start
mysql -e 'CREATE DATABASE ${{ env.DB_DATABASE }};' -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }}
- run: ${{ matrix.actions.run }}

0 comments on commit 73d2bc5

Please sign in to comment.