Skip to content

Commit

Permalink
Split item GH action to separate workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
dtest committed Jul 25, 2023
1 parent fe670c2 commit 77b7f9b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/backend_itemservice_pr.yml
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
1 change: 1 addition & 0 deletions .github/workflows/backend_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
pull_request:
paths:
- 'backend_services/**'
- '!backend_services/item/**'
jobs:
lint:
name: Lint files
Expand Down

0 comments on commit 77b7f9b

Please sign in to comment.