fix(deps): update dependency glob to v10.3.9 #1362
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: database-test | |
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
database-test: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 4 | |
matrix: | |
docker-images: ["mysql:5.7", "mysql:8", "mariadb:10"] | |
services: | |
db: | |
image: ${{ matrix.docker-images }} | |
env: | |
MYSQL_ALLOW_EMPTY_PASSWORD: yes | |
ports: | |
- 3306:3306 | |
options: --health-cmd="mysqladmin ping" --health-interval=30s --health-timeout=5s --health-retries=10 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: "npm" | |
- run: npm i -g npm | |
- run: npm ci | |
- name: setup mysql user | |
run: node ./docker/create_user.js | |
- name: test | |
run: npm run test | |
env: | |
CI: true | |
CDS_REQUIRES_DB_CREDENTIALS_HOST: "127.0.0.1" | |
CDS_REQUIRES_DB_CREDENTIALS_PORT: 3306 | |
CDS_REQUIRES_DB_CREDENTIALS_DATABASE: cds_admin | |
CDS_REQUIRES_DB_CREDENTIALS_USER: cds_admin | |
CDS_REQUIRES_DB_CREDENTIALS_PASSWORD: cds_admin |