From a021070a4ac4381e0ed45230ae5bb3f7e5bb7c9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pyry=20M=C3=A4kinen?= Date: Fri, 11 Oct 2024 13:54:04 +0300 Subject: [PATCH 1/2] remove pre-push-hook --- package.json | 6 ------ 1 file changed, 6 deletions(-) diff --git a/package.json b/package.json index 597ad1da53..aa71d3abfb 100644 --- a/package.json +++ b/package.json @@ -212,7 +212,6 @@ "eslint-plugin-prefer-arrow": "^1.2.3", "eslint-plugin-rxjs": "^5.0.2", "globby": "^11.1.0", - "husky": "^4.3.8", "jszip": "^3.10.1", "ng-packagr": "^16.2.3", "ngx-bootstrap": "^6.2.0", @@ -239,11 +238,6 @@ "url": "git+https://bitbucket.org:luomus/laji.fi-front.git" }, "homepage": "https://bitbucket.org/luomus/laji.fi-front", - "husky": { - "hooks": { - "pre-push": "npm --silent run msg-a && npm --silent run lint:all" - } - }, "volta": { "node": "16.20.2" } From 70dc0629eae0f61ce0004f871dac1d6d37b99d09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pyry=20M=C3=A4kinen?= Date: Fri, 11 Oct 2024 13:52:31 +0300 Subject: [PATCH 2/2] Set up lint Github Actions workflow --- .github/workflows/lint.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000000..ac4e51606d --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,19 @@ +name: Lint + +on: + pull_request: + types: [opened, synchronize, reopened] + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up node + uses: actions/setup-node@v4 + with: + node-version: 16.20.0 + cache: 'npm' + - run: npm install cross-env eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser @angular-eslint/eslint-plugin @angular-eslint/eslint-plugin-template @angular-eslint/template-parser + - run: npm run lint:all