Skip to content

Commit

Permalink
ci を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
harsssh committed Aug 26, 2024
1 parent 5e71b02 commit 5212dbc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/go-generate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
paths:
- .github/workflows/go-generate.yaml
- "backend/**.go"
- backend/go.mod
- backend/go.sum
- backend/app/go.mod
- backend/app/go.sum
jobs:
go-generate:
runs-on: ubuntu-latest
Expand All @@ -17,6 +17,8 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: 1.22.5
go-version-file: backend/app/go.mod
cache-dependency-path: backend/app/go.sum
- run: go install go.uber.org/mock/mockgen@latest
- run: go generate ./...
working-directory: backend/app
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/go-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
paths:
- .github/workflows/go-test.yaml
- "backend/**.go"
- backend/go.mod
- backend/go.sum
- backend/app/go.mod
- backend/app/go.sum
jobs:
go-test:
runs-on: ubuntu-latest
Expand All @@ -17,5 +17,7 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: 1.22.5
go-version-file: backend/app/go.mod
cache-dependency-path: backend/app/go.sum
- run: go test ./...
working-directory: backend/app

0 comments on commit 5212dbc

Please sign in to comment.