Enable woodpecker CI (#3)

Fixes https://codeberg.org/pzp/pzp-db/issues/2

Reviewed-on: https://codeberg.org/pzp/pzp-db/pulls/3
Co-authored-by: Jacob Karlsson <jacob.karlsson95@gmail.com>
Co-committed-by: Jacob Karlsson <jacob.karlsson95@gmail.com>
This commit is contained in:
Jacob Karlsson 2024-04-14 14:46:19 +00:00 committed by Powersource
parent f056429f31
commit 6acd57c707
3 changed files with 14 additions and 26 deletions

View File

@ -1,25 +0,0 @@
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test

13
.woodpecker.yaml Normal file
View File

@ -0,0 +1,13 @@
matrix:
NODE_VERSION:
- 18
- 20
steps:
test:
when:
event: [push]
image: node:${NODE_VERSION}
commands:
- npm install
- npm test

View File

@ -141,7 +141,7 @@ test('Log deletes', async (t) => {
await p(log.close)()
})
await t.test('Many deleted records', { timeout: 60e3 }, async (t) => {
await t.test('Many deleted records', { timeout: 2 * 60e3 }, async (t) => {
const file = '/tmp/aaol-test-delete-many' + Date.now() + '.log'
const log = Log(file, { blockSize: 64 * 1024 })