build: replace precommit hook by gh action

This commit is contained in:
Joost Jager 2023-03-23 08:54:54 +01:00
parent 5380de3838
commit d50da4d032
No known key found for this signature in database
GPG key ID: B9A26449A5528325
2 changed files with 17 additions and 7 deletions

View file

@ -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
# 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

View file

@ -1,4 +0,0 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
cd web && yarn check-lint && yarn check-types