Skip to content

Knex Playground

Knex Playground #2600

Workflow file for this run

---
name: Unit Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
name: Unit Tests
strategy:
matrix:
node-version: [20.x, 18.x, 16.x]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
always-auth: false
node-version: ${{ matrix.node-version }}
- name: Run npm install
run: npm install
- name: Run npm install mysql2@3.2.0 if Node 12.x
run: npm install mysql2@3.2.0
if: matrix.node-version == '12.x'
- run: npm run build
- name: Run Tests
run: npm run test:unit
env:
CI: true
KNEX_TEST_TIMEOUT: 60000