Skip to content

fix(vite-plugin-angular): read external stylesheets in compilation API transformStylesheet #5643

fix(vite-plugin-angular): read external stylesheets in compilation API transformStylesheet

fix(vite-plugin-angular): read external stylesheets in compilation API transformStylesheet #5643

Workflow file for this run

name: ci
on:
pull_request: {}
env:
NODE_OPTIONS: --max-old-space-size=16384
# Fork PRs get no secrets; they run tokenless and authenticate through the
# workspace's nxCloudId + connected GitHub repository as untrusted runs with
# an isolated cache.
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
NX_VERBOSE_LOGGING: ${{ vars.NX_VERBOSE_LOGGING }}
# Lets the coordinator keep handing tasks to already-running agents across the
# sequential nx commands below instead of re-provisioning between them.
NX_CLOUD_CONTINUOUS_ASSIGNMENT: true
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true
jobs:
# Coordinator. Checkout / install / orchestration only — all cacheable Nx work
# (lint, build, test, e2e) is distributed to Nx Agents defined in
# .nx/workflows/agents.yaml. Prettier stays local (non-Nx) but is recorded so
# it shows up in the Nx Cloud run.
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version-file: .node-version
- run: npm install --global corepack@0.31.0
- run: corepack enable
- run: pnpm --version
- uses: actions/setup-node@v3
with:
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- name: Install
run: pnpm install --frozen-lockfile --prefer-offline
# Start the distributed run. Agents are stopped once the last distributed
# target (e2e) finishes; the run itself is finalized explicitly so a
# failure in any step still records and shuts the run down cleanly.
- name: Start CI run
run: >
pnpm exec nx-cloud start-ci-run
--distribute-on="3 analog-linux"
--with-env-vars="NX_VERBOSE_LOGGING"
--require-explicit-completion
--stop-agents-after="e2e"
# Non-Nx check: runs on the coordinator, recorded into the Nx Cloud run.
- name: Prettier
run: pnpm exec nx-cloud record -- pnpm prettier:check
# Distributed across agents. Kept as separate commands because each target
# has a distinct project filter (lint excludes content/platform/router;
# build excludes astro-app; e2e is limited to analog-app-e2e/blog-app-e2e),
# which a single run-many cannot express. Ordering (test/e2e depend on
# build) is modeled by the Nx task graph, so no coordinator-level gating is
# needed. --parallel values are preserved as per-agent task concurrency.
- name: Lint
run: pnpm exec nx run-many --target lint --all --exclude=content,platform,router
- name: Build
run: pnpm exec nx run-many --target build --all --parallel=1 --exclude=astro-app
- name: Test
run: pnpm exec nx run-many --target test
- name: E2E
run: pnpm exec nx run-many --target e2e --projects=analog-app-e2e,blog-app-e2e --parallel=1
# Finalize the distributed run regardless of earlier step outcome.
- name: Complete CI run
if: always()
run: pnpm exec nx-cloud complete-ci-run
# Windows smoke build. Native runner job (separate OS plane from the linux
# agents) that verifies an Analog app actually builds on Windows.
#
# Scoped to `blog-app` and its deps (6 build tasks) instead of every project
# (20) — the Verify step only checks blog-app's output, so building the rest
# serially on the slowest runner was wasted time. `--skip-nx-cache` is
# deliberate: Nx's cache hash is OS-independent, so without it Windows could
# restore the linux agents' artifacts and never actually compile here,
# defeating the smoke test. The broad `--all` Windows build runs nightly via
# ci-windows-full.yml.
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: .node-version
- run: corepack enable
- uses: actions/setup-node@v3
with:
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- name: Install
run: pnpm install --frozen-lockfile --prefer-offline
- name: Build
run: pnpm exec nx build blog-app --skip-nx-cache
- name: Verify
run: more dist\apps\blog-app\analog\public\index.html