Skip to content

Bump @types/node from 16.11.6 to 20.11.21 in /angular #1846

Bump @types/node from 16.11.6 to 20.11.21 in /angular

Bump @types/node from 16.11.6 to 20.11.21 in /angular #1846

on:
pull_request:
branches: [develop]
name: Build
jobs:
# JOB to run change detection
changes:
runs-on: ubuntu-latest
# Set job outputs to values from filter step
outputs:
Angular: ${{ steps.filter.outputs.Angular }}
Node: ${{ steps.filter.outputs.Node }}
steps:
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
Angular:
- 'angular/**'
Node:
- 'node/**'
# JOB to build Angular code
Angular:
needs: changes
if: ${{ needs.changes.outputs.Angular == 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 14
- name: build
run: |
cd angular
npm install
npm run build
cd ..
- name: test
run: |
cd angular
npm install
npm run test:ci
# JOB to build Node code
Node:
needs: changes
if: ${{ needs.changes.outputs.Node == 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: build
run: |
cd node
yarn install
npm run build
cd ..
- name: test
run: |
cd node
yarn install
npm test