name: Viewer on: workflow_call: permissions: contents: read jobs: build: runs-on: ubuntu-latest defaults: run: working-directory: strix/interface/viewer/frontend steps: - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 with: persist-credentials: false - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: '24' cache: npm cache-dependency-path: strix/interface/viewer/frontend/package-lock.json - run: npm ci --no-audit --no-fund - run: npm run build - name: Committed viewer bundle matches the build run: git -C "$GITHUB_WORKSPACE" diff --exit-code --stat -- strix/interface/viewer/static && test -z "$(git -C "$GITHUB_WORKSPACE" status --porcelain -- strix/interface/viewer/static)"