Skip to content

ci: add previous MySQL versions to integration tests matrix #39

ci: add previous MySQL versions to integration tests matrix

ci: add previous MySQL versions to integration tests matrix #39

Workflow file for this run

name: "Unit Tests"
on:
pull_request:
types: [opened, reopened, synchronize]
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [18, 20, 22]
name: Node ${{ matrix.node }}
steps:
- name: "Checkout latest code"
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Install npm
run: |
npm install -g npm@$NPM_VERSION &&
npm --version &&
npm list -g --depth 0
- name: Install dependencies
run: npm ci
- name: Run unit tests
run: npm run test:unit
lint:
name: "ESLint"
runs-on: ubuntu-latest
steps:
- name: Checkout latest code
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: "22"
- name: Install dependencies
run: npm ci
- name: Run ESLint
run: npm run lint