Skip to content

feat: improved inspection of columns #346

feat: improved inspection of columns

feat: improved inspection of columns #346

Workflow file for this run

name: CI - Linux (bun)
# this will be merged with ci-linux.yml
on:
pull_request:
push:
branches: [ main ]
workflow_dispatch:
env:
MYSQL_PORT: 3306
MYSQL_USER: root
MYSQL_DATABASE: test
jobs:
tests-linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
bun-version: [0.5.1]
mysql-version: ["mysql:5.7", "mysql:8.0.18", "mysql:8.0.22"]
use-compression: [0]
use-tls: [0]
name: Bun ${{ matrix.bun-version }} - DB ${{ matrix.mysql-version }} - SSL=${{matrix.use-tls}} Compression=${{matrix.use-compression}}
steps:
- uses: actions/checkout@v3
- name: Set up MySQL
run: docker run -d -e MYSQL_ALLOW_EMPTY_PASSWORD=1 -e MYSQL_DATABASE=${{ env.MYSQL_DATABASE }} -v $PWD/mysqldata:/var/lib/mysql/ -v $PWD/examples/custom-conf:/etc/mysql/conf.d -v $PWD/examples/ssl/certs:/certs -p ${{ env.MYSQL_PORT }}:3306 ${{ matrix.mysql-version }}
- name: Set up Bun ${{ matrix.bun-version }}
uses: oven-sh/setup-bun@v0.1.8
with:
bun-version: ${{ matrix.bun-version }}
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- 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 ci
# - name: Install npm dependencies
# run: bun install
- name: Wait mysql server is ready
run: node tools/wait-up.js
- name: Run tests
# todo: run full test suite once test createServer is implemented using Bun.listen
run: FILTER=test-select MYSQL_PORT=3306 bun run test