-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implement CI for `backend-go` * Add working directory * Change working directory * Update go version * Add depedency download * Update `go.mod` * Update ci_backend_go.yaml * Update golangci-lint * Change go version * Add comment * Apply comment * Update ci_backend_go.yaml
- Loading branch information
Showing
4 changed files
with
66 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: CI GO Backend | ||
on: | ||
push: | ||
branches: [main] | ||
paths: | ||
- ".github/workflows/ci_backend_go.yaml" | ||
- "backend-go/**" | ||
- "!backend-go/design/**" | ||
pull_request: | ||
branches: [main] | ||
paths: | ||
- ".github/workflows/ci_backend_go.yaml" | ||
- "backend-go/**" | ||
- "!backend-go/design/**" | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
env: | ||
working-directory: ./backend-go | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.21" | ||
|
||
- name: Install Tools | ||
run: make tools | ||
working-directory: ${{ env.working-directory }} | ||
|
||
- name: Install Dependencies | ||
run: go mod download | ||
working-directory: ${{ env.working-directory }} | ||
|
||
- name: Format | ||
run: make fmt | ||
working-directory: ${{ env.working-directory }} | ||
|
||
- name: Lint | ||
run: make lint | ||
working-directory: ${{ env.working-directory }} | ||
|
||
- name: Build | ||
run: make build | ||
working-directory: ${{ env.working-directory }} | ||
|
||
- name: Test | ||
run: make test | ||
working-directory: ${{ env.working-directory }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
run: | ||
deadline: 5m | ||
skip-dirs: | ||
- api/codepair/v1/models # Auto-generated code | ||
|
||
linters: | ||
enable: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters