Skip to content

refactor: separate validation, response and business logic #6

refactor: separate validation, response and business logic

refactor: separate validation, response and business logic #6

name: backend-api-unit-test
on:
push:
paths:
- 'backend/pkg/api/handlers/**'
- 'backend/pkg/api/data_access/**'
branches:
- main
- staging
pull_request:
paths:
- 'backend/pkg/api/handlers/**'
- 'backend/pkg/api/data_access/**'
branches:
- '*'
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: 'backend/'
cache-dependency-path: backend/go.sum
- name: unit tests
working-directory: ./backend
run:
go test ./pkg/api/handlers/... ./pkg/api/data_access/...