Skip to content

WIP: Enhance inject route utilities #1132

WIP: Enhance inject route utilities

WIP: Enhance inject route utilities #1132

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
env:
NX_VERBOSE_LOGGING: true
NX_NO_CLOUD: true
# Needed for nx-set-shas when run on the main branch
permissions:
actions: read
contents: read
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 9
run_install: false
- name: Start CI run
run: npx nx-cloud start-ci-run --distribute-on="8 linux-medium-js" --stop-agents-after=build
- name: Restore cached npm dependencies
id: cache-dependencies-restore
uses: actions/cache/restore@v3
with:
path: |
node_modules
~/.cache/Cypress # needed for the Cypress binary
key: npm-dependencies-${{ hashFiles('pnpm-lock.yaml') }}
- run: pnpm install --frozen-lockfile
- name: Cache npm dependencies
id: cache-dependencies-save
uses: actions/cache/save@v3
with:
path: |
node_modules
~/.cache/Cypress # needed for the Cypress binary
key: ${{ steps.cache-dependencies-restore.outputs.cache-primary-key }}
- uses: nrwl/nx-set-shas@v3
# This line is needed for nx affected to work when CI is running on a PR
# - run: git branch --track main origin/main
- run: pnpm nx-cloud record -- nx format:check
- run: pnpm nx affected --target=lint --parallel=3
# TODO: (chau) local-plugin test is faulty right now with Jest and ESM. Will fix later
- run: pnpm nx affected --target=test --parallel=3 --exclude=local-plugin
- run: pnpm nx affected --target=build --parallel=3 --exclude=docs