From ccd4b8959e2a138aa6569de774c080b11b299375 Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Wed, 8 Jun 2022 20:56:33 -0700 Subject: [PATCH] lp1978049: add ng lint to github actions Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- .github/workflows/ng-lint.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/ng-lint.yml 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 -- 2.11.0