chore(deps): update dependency @types/node to v20.6.3 #1683
Workflow file for this run
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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: Build and Test | |
on: | |
push: | |
branches: | |
- '**' | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: ${{ !contains(github.event.head_commit.message, '[ci skip]') || github.event_name == 'workflow_dispatch' }} | |
strategy: | |
fail-fast: false | |
matrix: | |
node: | |
- 'current' | |
- 'lts/*' | |
- 'lts/-1' | |
knex: | |
- '^1.0.0' | |
- '^2.0.0' | |
name: Build and test (Node ${{ matrix.node }}, knex ${{ matrix.knex }}) | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.1 | |
with: | |
egress-policy: audit | |
- name: Check out the code | |
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | |
- name: Set up Node.js environment | |
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: npm | |
- name: Install dependencies | |
run: npm ci | |
- name: Install knex | |
run: npm i -D knex@${{ matrix.knex }} | |
- name: Install @vscode/sqlite3 | |
run: | | |
npm r sqlite3 | |
npm i -D @vscode/sqlite3 | |
if: ${{ matrix.knex == '^1.0.0' }} | |
- name: Run tests | |
run: npm test | |
env: | |
COLLECT_COVERAGE: "0" |