From 5745b54f8bf975c7a1e8fdcdfbe933cde27d9ac1 Mon Sep 17 00:00:00 2001 From: David Poetzsch-Heffter Date: Wed, 7 Feb 2024 15:51:25 +0100 Subject: [PATCH] Linting (https://github.com/mondata-dev/staqe/issues/10) (#21) * added linting * added node version * new integrity check * better trigger for lint --- .github/workflows/lint.yaml | 29 +++++++++++++++++++++++++++++ package-lock.json | 1 - 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/lint.yaml diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..2d5d51e --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,29 @@ +name: Lint + +on: + push: + branches: [main] + pull_request: + branches: ['*'] + +permissions: + contents: read + packages: write + +jobs: + build_docker: + runs-on: ubuntu-22.04 + name: Build & publish docker image + steps: + - name: Install NodeJS + uses: actions/setup-node@v2 + with: + node-version: '20.11' + - name: Check out the repo + uses: actions/checkout@v4 + - name: Install dependencies + run: npm ci --cache .npm --prefer-offline + - name: prettier-check + run: npm run prettier-check + - name: lint + run: npm run lint -- --quiet diff --git a/package-lock.json b/package-lock.json index d702564..0094946 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1599,7 +1599,6 @@ "node_modules/@nimiq/hub-api": { "version": "1.7.0-albatross.0", "resolved": "https://gitpkg.now.sh/nimiq/hub/client?87627adee73c7ad9c70beeb5cc5703c30c8d30a8", - "integrity": "sha512-OmEy9C9r1YIkOJyO7+szpKaR2qhVkAED7HrMVoLgaiT+Ox2yldjlJww07maQ/omMUmZI9jcUOBw6GtS7VuU8Fw==", "license": "Apache-2.0", "dependencies": { "@nimiq/core-web": "^1.6.1",