Skip to content

build(deps-dev): bump @types/node from 20.5.4 to 20.5.6 #768

build(deps-dev): bump @types/node from 20.5.4 to 20.5.6

build(deps-dev): bump @types/node from 20.5.4 to 20.5.6 #768

Workflow file for this run

name: CI - Windows
on:
pull_request:
push:
branches: [ main ]
workflow_dispatch:
env:
MYSQL_PORT: 3306
MYSQL_USER: root
MYSQL_DATABASE: test
jobs:
tests-windows:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
node-version: [18.x, 20.x]
mysql-version: ['8.0']
use-compression: [0, 1]
use-tls: [0, 1]
name: Node.js ${{ matrix.node-version }} - DB ${{ matrix.mysql-version }} - SSL=${{matrix.use-tls}} Compression=${{matrix.use-compression}}
steps:
- uses: actions/checkout@v3
- name: Set up MySQL
uses: shogo82148/actions-setup-mysql@v1
with:
mysql-version: ${{ matrix.mysql-version }}
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- name: Install npm dependencies
run: npm install
- name: Wait mysql server is ready
run: node tools/wait-up.js
- run: node tools/create-db.js
- name: Run tests
run: npm test
env:
MYSQL_USE_TLS: ${{ matrix.use-tls }}
MYSQL_USE_COMPRESSION: ${{ matrix.use-compression }}