Skip to content

PRMP-1188 Create a lambda to handle MNS notifications #1075

PRMP-1188 Create a lambda to handle MNS notifications

PRMP-1188 Create a lambda to handle MNS notifications #1075

name: 'CI Lambdas - CI Feature to Main'
on:
push:
branches:
- main
paths:
- 'lambdas/**'
pull_request:
branches:
- main
paths:
- 'lambdas/**'
permissions:
pull-requests: write
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
check_packages:
uses: ./.github/workflows/base-lambdas-check-packages.yml
with:
environment: development
python_version: 3.11
build_branch: ${{github.event.pull_request.head.ref}}
run_tests:
uses: ./.github/workflows/base-lambdas-reusable-test.yml
with:
python_version: 3.11
build_branch: ${{github.event.pull_request.head.ref}}
publish_all_lambda_layers:
name: Publish all Lambda Layers
needs: [ "run_tests" ]
uses: ./.github/workflows/base-lambda-layer-reusable-publish-all.yml
if: |
(github.ref == 'refs/heads/main')
with:
environment: development
python_version: '3.11'
build_branch: ${{github.event.pull_request.head.ref}}
sandbox: ndr-dev
secrets:
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }}
deploy_all_lambdas:
uses: ./.github/workflows/base-lambdas-reusable-deploy-all.yml

Check failure on line 49 in .github/workflows/lambdas-dev-to-main-ci.yml

View workflow run for this annotation

GitHub Actions / CI Lambdas - CI Feature to Main

Invalid workflow file

The workflow is not valid. In .github/workflows/lambdas-dev-to-main-ci.yml (Line: 49, Col: 11): Error from called workflow nhsconnect/national-document-repository/.github/workflows/base-lambdas-reusable-deploy-all.yml@b386ac435ae9c8df70806aa4634fc886b50c6cbf (Line: 410, Col: 9): Unrecognized named-value: 'matrix'. Located at position 1 within expression: matrix.env_to_build_on
needs: ["run_tests", "publish_all_lambda_layers"]
if: |
(github.ref == 'refs/heads/main')
with:
environment: development
python_version: '3.11'
build_branch: ${{github.event.pull_request.head.ref}}
sandbox: ndr-dev
secrets:
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }}
deploy_ods_batch_update:
name: Deploy ODS Batch Update
needs: [ "run_tests" ]
uses: ./.github/workflows/base-batch-update.yml
if: github.ref == 'refs/heads/main'
with:
build_branch: ${{ github.event.pull_request.head.ref }}
environment: development
sandbox: ndr-dev
secrets:
AWS_ASSUME_ROLE: ${{ secrets.AWS_ASSUME_ROLE }}