Skip to content

feat(api_gateway): add route to get an employer (#33) #48

feat(api_gateway): add route to get an employer (#33)

feat(api_gateway): add route to get an employer (#33) #48

name: Push & PR to the main branch
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
detect_changes:
name: Detect repository changes
runs-on: ubuntu-latest
outputs:
backend: ${{ steps.filter.outputs.backend }}
frontend: ${{ steps.filter.outputs.frontend }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
backend:
- 'backend/**'
frontend:
- 'front/**'
lint_frontend:
name: Lint frontend
needs: detect_changes
if: ${{ needs.detect_changes.outputs.frontend == 'true' }}
uses: ./.github/workflows/flow_front_lint.yml
lint_backend:
name: Lint backend
needs: detect_changes
if: ${{ needs.detect_changes.outputs.backend == 'true' }}
uses: ./.github/workflows/flow_backend_lint.yml
build_push_backend:
name: Build & push Docker image of the "${{ matrix.service }}" service
needs: lint_backend
uses: ./.github/workflows/flow_backend_build_push.yml
strategy:
matrix:
service: [api_gateway, jobs, messaging, employer]
with:
service-name: ${{ matrix.service }}
push-image: ${{ github.event_name != 'pull_request' }}
image-tags: |
type=sha
type=ref,event=branch
type=edge,branch=main