Skip to content

MI-72: Update template to match with recent changes #2039

MI-72: Update template to match with recent changes

MI-72: Update template to match with recent changes #2039

Workflow file for this run

name: Test NX package
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
deploy:
name: Test package building
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.18]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- run: npx nx g library test-lib --directory=libs/test-lib --unitTestRunner=none
- run: npx nx g service test-app
# The next 2 lines are needed for nx affected to work when CI is running on a PR
- uses: nrwl/nx-set-shas@v4
- run: git fetch
- run: npx nx affected -t lint, test, build --parallel=3 --base=origin/main
- run: npx nx g rm test-lib
- run: npx nx g rm test-app