[NRPTI-1045] - WIP - Update agency name in NRPTI #923
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Front-End linting & tests | |
on: [pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
node-version: [10.x] | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: dorny/paths-filter@v2 | |
id: filter | |
with: | |
filters: | | |
frontend: | |
- 'angular/**' | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: npm install | |
if: steps.filter.outputs.frontend == 'true' | |
run: | | |
cd angular | |
npm install | |
npm run lint | |
env: | |
CI: true | |
- name: lint | |
if: steps.filter.outputs.frontend == 'true' | |
run: | | |
cd angular | |
npm run lint | |
env: | |
CI: true | |
- name: build, and test | |
if: steps.filter.outputs.frontend == 'true' | |
run: | | |
cd angular | |
npm run build | |
npm run test | |
env: | |
CI: true |