-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split item GH action to separate workflow.
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 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,29 @@ | ||
|
||
name: Backend Item Service code tests | ||
on: | ||
pull_request: | ||
paths: | ||
- 'backend_services/item/**' | ||
jobs: | ||
test: | ||
name: Tests | ||
runs-on: ubuntu-latest | ||
needs: lint | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: '^1.19.2' | ||
- name: Check go version | ||
run: go version | ||
- name: Lint files | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
working-directory: ./backend_services/item | ||
args: --timeout 120s --verbose | ||
- name: Run unit tests | ||
run: | | ||
make item-test | ||
- name: Run integration tests | ||
run: | | ||
make item-test-integration |
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