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

Skip to content

Update endpoints and repo structure to support versioning (#9) #10

Update endpoints and repo structure to support versioning (#9)

Update endpoints and repo structure to support versioning (#9) #10

Workflow file for this run

name: Publish
on:
push:
branches:
- main
workflow_dispatch:
permissions:
id-token: write
contents: write
pull-requests: write
env:
AWS_REGION: eu-west-2
AWS_ACCOUNT_ID: "094954420758"
jobs:
build:
if: github.run_number != 1
name: CDP-build-workflow
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Create Test Coverage Reports
run: |
npm ci
- 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 }}
- name: Build and Publish
uses: DEFRA/cdp-build-action/build@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}