Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 23 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,38 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [20.x, 18.x, 16.x, 14.x]
os: [ubuntu-latest]
node-version: [20.x, 22.x]

runs-on: ${{ matrix.os }}

services:
pgvector:
image: pgvector/pgvector:pg16
ports:
- 5432:5432
env:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: postgres
options: >-
--health-cmd "pg_isready -U postgres"
--health-interval 5s
--health-timeout 5s
--health-retries 10

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
# manually install peerdeps for node 12,14
- run: npm i seneca seneca-entity
- run: npm run build --if-present
- run: npm test
env:
SENECA_VECTOR_PG_URL: postgres://postgres:postgres@localhost:5432/postgres

- name: Coveralls
uses: coverallsapp/github-action@master
Expand Down
77 changes: 61 additions & 16 deletions .github/workflows/todo.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,63 @@
name: 'TODO'
on: ['push']
# =============================================================================
# DISABLED — this workflow does not run.
#
# It used `senecajs/todo-to-issue-action@master` to turn `TODO:` comments into
# GitHub issues on every push, but that action is broken at @master:
# * its Docker image crashes with
# TypeError: 'type' object is not subscriptable
# (a urllib3 / Python-version bug baked into the action's image — not
# fixable from this repo), and
# * its inputs (REPO / BEFORE / SHA / TOKEN / LABEL / COMMENT_MARKER /
# INCLUDE_EXT) are stale — the action now only accepts entryPoint / args.
#
# To RE-ENABLE, switch to the maintained upstream action and grant issue
# write permission (it auto-detects languages, uses GITHUB_TOKEN, and needs
# no INCLUDE_EXT/COMMENT_MARKER):
#
# name: 'TODO to Issue'
# on: ['push']
# permissions:
# contents: read
# issues: write
# jobs:
# todo:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: alstr/todo-to-issue-action@v5
#
# Original (broken) configuration, kept for reference:
#
# name: 'TODO'
# on: ['push']
# jobs:
# build:
# runs-on: 'ubuntu-latest'
# steps:
# - uses: 'actions/checkout@master'
# - name: 'todo-to-issue'
# uses: 'senecajs/todo-to-issue-action@master'
# with:
# REPO: ${{ github.repository }}
# BEFORE: ${{ github.event.before }}
# SHA: ${{ github.sha }}
# TOKEN: ${{ secrets.GITHUB_TOKEN }}
# LABEL: 'TODO:'
# COMMENT_MARKER: '//'
# INCLUDE_EXT: '.js,.md,.ts'
# id: 'todo'
# =============================================================================

name: 'TODO (disabled)'

# Manual-only trigger; never runs on push.
on:
workflow_dispatch:

jobs:
build:
runs-on: 'ubuntu-latest'
disabled:
# Hard-disabled: this job is always skipped.
if: ${{ false }}
runs-on: ubuntu-latest
steps:
- uses: 'actions/checkout@master'
- name: 'todo-to-issue'
uses: 'senecajs/todo-to-issue-action@master'
with:
REPO: ${{ github.repository }}
BEFORE: ${{ github.event.before }}
SHA: ${{ github.sha }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
LABEL: 'TODO:'
COMMENT_MARKER: '//'
INCLUDE_EXT: '.js,.md,.ts'
id: 'todo'
- run: echo "todo-to-issue is disabled — see the comment block at the top of this file."
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lib-cov
*.out
*.pid
*.gz

dist
pids
logs
results
Expand Down
Loading