From: Jane Sandberg Date: Thu, 9 Jun 2022 03:56:33 +0000 (-0700) Subject: lp1978049: add ng lint to github actions X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=37dc855efe0bc1c9d341038ca68d5ee2d82fc902;p=working%2FEvergreen.git lp1978049: add ng lint to github actions Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- diff --git a/.github/workflows/ng-lint.yml b/.github/workflows/ng-lint.yml new file mode 100644 index 0000000000..a607f3aa6b --- /dev/null +++ b/.github/workflows/ng-lint.yml @@ -0,0 +1,26 @@ +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