ci: fix Actions on homelab runners
Drop setup-node cache (no lockfile) and Node 14 host PATH that broke checkout@v4. Run lint + export:bw in a node:20 container.
This commit is contained in:
parent
3694473c99
commit
2bb4a46e49
34
.github/workflows/main.yml
vendored
34
.github/workflows/main.yml
vendored
@ -2,26 +2,30 @@ name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
branches: [master]
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
# Homelab runners do not run Chromium/Xvfb e2e reliably; keep CI to lint + PDF export.
|
||||
core:
|
||||
# ubuntu-20.04 never matched any runner (jobs sat forever in "Waiting to run").
|
||||
# Use the same label claw/integration uses successfully on this forge.
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: [homelab, self-hosted, linux, node]
|
||||
container:
|
||||
image: node:20-bookworm
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set node version
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
cache: npm
|
||||
|
||||
- run: npm install
|
||||
- run: npm run lint
|
||||
- run: npm run export
|
||||
- run: npm run preview
|
||||
- run: npm run test:export
|
||||
- run: npm run test:docs
|
||||
- name: Install and lint
|
||||
run: |
|
||||
set -e
|
||||
# Vue/webpack stack needs the OpenSSL legacy provider on Node 17+
|
||||
export NODE_OPTIONS="${NODE_OPTIONS:+$NODE_OPTIONS }--openssl-legacy-provider"
|
||||
npm install
|
||||
npm run lint
|
||||
|
||||
- name: Export resumes (PDF)
|
||||
run: |
|
||||
set -e
|
||||
export NODE_OPTIONS="${NODE_OPTIONS:+$NODE_OPTIONS }--openssl-legacy-provider"
|
||||
# scripts/export.js drives the headless path used by `npm run export:bw`
|
||||
npm run export:bw
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user