Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
--- /dev/null
+name: Run ng lint
+on:
+ push:
+ paths:
+ - 'Open-ILS/src/eg2/**'
+ pull_request:
+ paths:
+ - 'Open-ILS/src/eg2/**'
+defaults:
+ run:
+ working-directory: Open-ILS/src/eg2
+jobs:
+ lint:
+ name: Run Angular linter
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-node@v3
+ with:
+ node-version: 14
+ cache: 'npm'
+ cache-dependency-path: Open-ILS/src/eg2/package-lock.json
+ - name: Install dependencies
+ run: npm ci --ignore-scripts
+ - name: lint
+ run: npx ng lint