message: adding mysql setup to tests
diff: @@ -15,18 +15,44 @@ jobs:
  matrix:
  node-version: [10.x, 12.x, 13.x]
  + services:
  + mariadb:
  + image: mariadb:latest
  + ports:
  + - 3306:3306
  + env:
  + MYSQL_USER: user
  + MYSQL_PASSWORD: password
  + MYSQL_DATABASE: test
  + MYSQL_ROOT_PASSWORD: password
  + options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
  +
  +
  steps:
  - uses: actions/checkout@v1
  - name: Use Node.js ${{ matrix.node-version }}
  uses: actions/setup-node@v1
  with:
  node-version: ${{ matrix.node-version }}
  +
  + - name: Verify MariaDB connection
  + env:
  + PORT: ${{ job.services.mariadb.ports[3306] }}
  + run: |
  + while ! mysqladmin ping -h"127.0.0.1" -P"$PORT" --silent; do
  + sleep 1
  + done
  +
  - name: npm install, build, and test
  run: |
  npm ci
  npm run build --if-present
  npm test
  env:
  + MYSQL_HOST: localhost
  + MYSQL_USER: user
  + MYSQL_PASSWORD: password
  + MYSQL_DATABASE: pigalelry_test
  PORT: 35000
  CI: true
  