]> git.evergreen-ils.org Git - Evergreen.git/blob - .github/workflows/ng-lint.yml
lp1978049: add ng lint to github actions
[Evergreen.git] / .github / workflows / ng-lint.yml
1 name: Run ng lint
2 on:
3   push:
4     paths:
5       - 'Open-ILS/src/eg2/**'
6   pull_request:
7     paths:
8       - 'Open-ILS/src/eg2/**'
9 defaults:
10   run:
11     working-directory: Open-ILS/src/eg2
12 jobs:
13   lint:
14     name: Run Angular linter
15     runs-on: ubuntu-latest
16     steps:
17       - uses: actions/checkout@v2
18       - uses: actions/setup-node@v3
19         with:
20           node-version: 14
21           cache: 'npm'
22           cache-dependency-path: Open-ILS/src/eg2/package-lock.json
23       - name: Install dependencies
24         run: npm ci --ignore-scripts
25       - name: lint
26         run: npx ng lint