diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/lint.yml similarity index 75% rename from .github/workflows/golangci-lint.yml rename to .github/workflows/lint.yml index 072db91..b2f8a8d 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/lint.yml @@ -1,4 +1,4 @@ -name: golangci-lint +name: Lint on: push: tags: @@ -13,7 +13,7 @@ permissions: # pull-requests: read jobs: golangci: - name: lint + name: Run golangci-lint runs-on: ubuntu-latest steps: - uses: actions/setup-go@v3 @@ -43,4 +43,18 @@ jobs: # skip-pkg-cache: true # Optional: if set to true then the action don't cache or restore ~/.cache/go-build. - # skip-build-cache: true \ No newline at end of file + # skip-build-cache: true + web-lint: + runs-on: ubuntu-latest + name: Run lint and type check + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: '19.x' + - run: yarn + working-directory: ./web + - run: yarn check-lint + working-directory: ./web + - run: yarn check-types + working-directory: ./web diff --git a/web/.husky/pre-commit b/web/.husky/pre-commit deleted file mode 100755 index c75e779..0000000 --- a/web/.husky/pre-commit +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - -cd web && yarn check-lint && yarn check-types