Skip to content

Test CI formatting check #425

Test CI formatting check

Test CI formatting check #425

Workflow file for this run

name: Build on PR
on:
push:
branches: ['main']
pull_request:
branches: ['main']
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
checks: write
issues: read
pull-requests: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: 'npm'
- run: npm ci
- run: npm run lint
- run: npm test
env:
STATIC_BUCKET: test
CONTENT_URL_BASE: test
- run: npm run build
- uses: guardian/actions-riff-raff@v4
with:
projectName: Content Platforms::recipes-backend
configPath: 'cdk/cdk.out/riff-raff.yaml'
roleArn: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
contentDirectories: |
cdk.out:
- cdk/cdk.out/RecipesBackend-euwest-1-CODE.template.json
- cdk/cdk.out/RecipesBackend-euwest-1-PROD.template.json
recipes-backend-testindex:
- dist/lambda/test-indexbuild-lambda.zip
recipes-responder:
- dist/lambda/recipes-responder.zip
recipes-backend-rest-endpoints:
- dist/lambda/rest-endpoints.zip
recipes-publish-todays-curation:
- dist/lambda/publish-todays-curation.zip
recipes-facia-responder:
- dist/lambda/facia-responder.zip