project-nomad/.github/workflows/build-admin-on-pr.yml

31 lines
822 B
YAML

name: Build Admin
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: '24'
cache: 'npm'
- name: Install libzim system headers
# @openzim/libzim is a native Node module that compiles against the system
# libzim C++ library via node-gyp. The ubuntu-latest runner image stopped
# shipping libzim-dev preinstalled in early May 2026, breaking npm ci.
run: sudo apt-get update && sudo apt-get install -y libzim-dev
- name: Install dependencies
run: npm ci
working-directory: ./admin
- name: Run build
run: npm run build
working-directory: ./admin