Skip to content

Commit

Permalink
fix: ci path settings
Browse files Browse the repository at this point in the history
  • Loading branch information
claustra01 committed Mar 28, 2024
1 parent cb161aa commit 748817b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/bot-ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: bot-ci
on:
push:
path: "bot/**"
paths:
- "bot/**"
jobs:
lint:
runs-on: ubuntu-latest
Expand All @@ -11,4 +12,4 @@ jobs:
- name: setup
uses: actions/setup-go@v5
- name: static check
run: cd bot && make env && make lint
run: cd bot && make ci_lint
3 changes: 2 additions & 1 deletion .github/workflows/web-ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: web-ci
on:
push:
path: "web/**"
paths:
- "web/**"
jobs:
lint:
runs-on: ubuntu-latest
Expand Down
4 changes: 3 additions & 1 deletion bot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ env:
lint:
$$(go env GOPATH)/bin/golangci-lint run ./...

# hoge
ci_lint:
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
$$(go env GOPATH)/bin/golangci-lint run ./...

0 comments on commit 748817b

Please sign in to comment.