mirror of
https://github.com/lightningequipment/circuitbreaker.git
synced 2026-08-13 12:33:02 +02:00
build: replace precommit hook by gh action
This commit is contained in:
parent
5380de3838
commit
d50da4d032
2 changed files with 17 additions and 7 deletions
|
|
@ -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
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
cd web && yarn check-lint && yarn check-types
|
||||
Loading…
Add table
Add a link
Reference in a new issue