Skip to content

Merge pull request #510 from DEFRA/bookmark-english-northern-ireland-… #488

Merge pull request #510 from DEFRA/bookmark-english-northern-ireland-…

Merge pull request #510 from DEFRA/bookmark-english-northern-ireland-… #488

Workflow file for this run

name: Publish
on:
push:
branches:
- main
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: Cache Node.js modules # Add cache step # ''
uses: actions/cache@v4 # Update to v4 of actions/cache # ''
with: # ''
path: ~/.npm # ''
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} # ''
restore-keys: | # ''
${{ runner.os }}-node- # ''
- name: Build and Publish
uses: DEFRA/cdp-build-action/build@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Create Test Coverage Reports
run: |
npm ci
npm run build
npm test
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}