adapt CI [f] #378
This file contains hidden or 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
name: test | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
# make workflow callable by others | |
workflow_call: | |
jobs: | |
test: | |
name: run tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: | |
- '22.x' | |
- '24.x' | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: install DuckDB | |
run: | | |
set -eux -o pipefail | |
curl -fsSL -U '${{ github.repository }} CI' 'https://install.duckdb.org' | sh | |
export PATH="$HOME/.duckdb/cli/latest:$PATH" | |
duckdb --version | |
- run: npm install | |
- run: npm run lint | |
- name: npm test | |
run : npm test |