Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update endpoints and repo structure to support versioning #73

Update endpoints and repo structure to support versioning

Update endpoints and repo structure to support versioning #73

name: Check Pull Request
on:
pull_request:
branches:
- main
types:
- opened
- edited
- reopened
- synchronize
- ready_for_review
workflow_dispatch:
jobs:
pr-validator:
name: Run Pull Request Checks
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Test code and Create Test Coverage Reports
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: |
npm ci
- name: Build Docker Image
run: |
set +e
docker build --no-cache --tag fcp-sfd-object-processor .
exit $?
- name: Run Tests
run: |
mkdir -p coverage
chmod -R a+rw ./coverage
docker compose -f compose.yaml -f compose.test.yaml run --build --rm 'fcp-sfd-object-processor'
- name: SonarQubeScan
uses: SonarSource/sonarqube-scan-action@v5
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}