mirror of
https://github.com/morluto/rea.git
synced 2026-12-01 19:09:21 +00:00
* fix(ci): run npm lifecycle hooks in selected host lanes * fix(ci): avoid nested lifecycle hooks in host lanes --------- Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com> Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
47 lines
1.5 KiB
YAML
47 lines
1.5 KiB
YAML
name: SQLite runtime compatibility
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
HUSKY: "0"
|
|
|
|
jobs:
|
|
sqlite:
|
|
name: SQLite runtime compatibility (Node ${{ matrix.node }})
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
# Exercise unavailable-runtime diagnostics and rolling supported releases.
|
|
# Security floors prevent fallback to an older hosted-toolcache patch.
|
|
# The repository-pinned Node 24 version also runs the complete test suite.
|
|
node: ["^22.23.4", "24.22.1", "^24.22.1", "^26.12.1"]
|
|
steps:
|
|
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
|
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
with:
|
|
package-manager-cache: false
|
|
node-version: ${{ matrix.node }}
|
|
check-latest: true
|
|
- name: Cache npm package downloads
|
|
id: npm-cache
|
|
uses: ./.github/actions/npm-cache
|
|
- run: npm ci
|
|
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
with:
|
|
name: rea-test-runtime
|
|
path: .
|
|
- name: Verify SQLite discovery, inspection and cleanup
|
|
# The downloaded runtime supplies the preparation done by test:sqlite.
|
|
# Run named hooks without adding their own pre/post lifecycle.
|
|
shell: bash
|
|
run: |
|
|
npm run --ignore-scripts --if-present pretest:sqlite
|
|
npm run test:sqlite:run
|
|
npm run --ignore-scripts --if-present posttest:sqlite
|