Skip to content

chore(master): release 5.0.0 (#70) #101

chore(master): release 5.0.0 (#70)

chore(master): release 5.0.0 (#70) #101

Workflow file for this run

name: CI
on:
push:
branches:
- '**'
jobs:
lint:
uses: dvsa/.github/.github/workflows/nodejs-lint.yaml@v4.0.1
with:
node-version: 20.x
test:
uses: dvsa/.github/.github/workflows/nodejs-test.yaml@v4.0.1
with:
node-version: 20.x
security:
uses: dvsa/.github/.github/workflows/nodejs-security.yaml@v4.0.1
with:
args: --all-projects
secrets:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
build-names:
runs-on: ubuntu-latest
timeout-minutes: 10
outputs:
short_sha: ${{ steps.sha.outputs.SHORT_SHA }}
pretty_branch_name: ${{ steps.branch.outputs.NAME }}
steps:
- uses: actions/checkout@v4
- name: Set short sha output
id: sha
run: echo "SHORT_SHA=$(git rev-parse --short=11 HEAD)" >> $GITHUB_OUTPUT
- name: Set archive name output
id: branch
run: |
export PRETTY_BRANCH_NAME=$(tr '/' '-' <<< ${{ github.ref_name }})
echo "NAME=${PRETTY_BRANCH_NAME}" >> $GITHUB_OUTPUT
build:
uses: dvsa/.github/.github/workflows/nodejs-build.yaml@v4.0.1
needs: [ build-names ]
with:
node-version: 20.x
upload-artifact: true
build-folder: dist
build-command: npm run build:prod
upload-s3:
if: startsWith( github.ref, 'refs/heads/feature/') || startsWith( github.ref, 'refs/heads/fix/') || ${{ github.ref_name == github.event.repository.default_branch }}

Check warning on line 53 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Workflow syntax warning

.github/workflows/ci.yml (Line: 53, Col: 9): Conditional expression contains literal text outside replacement tokens. This will cause the expression to always evaluate to truthy. Did you mean to put the entire expression inside ${{ }}?
uses: dvsa/.github/.github/workflows/upload-to-s3.yaml@v4.0.1
needs: [ lint, test, build, build-names ]
with:
environment: nonprod
short-commit: ${{ needs.build-names.outputs.short_sha }}
artifact: checkForOrphanedPayments.zip
bucket-key: cpms-checking/checkForOrphanedPayments/${{ needs.build-names.outputs.pretty_branch_name }}.zip
permissions:
id-token: write
secrets:
AWS_ROLE_TO_ASSUME_ARN: ${{ secrets.AWS_ROLE_TO_ASSUME_ARN }}
AWS_ACCOUNT: ${{ secrets.RSP_AWS_ACCOUNT }}
AWS_REGION: ${{ secrets.RSP_AWS_REGION }}
BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME }}
update-lambda-code:
if: ${{ github.ref_name == github.event.repository.default_branch }}
uses: dvsa/.github/.github/workflows/update-lambda-function.yaml@v4.0.1
needs: [ build-names, build, upload-s3 ]
with:
environment: nonprod
lambda-function-name: rsp-nonprod-apis-cpms-checking-checkForOrphanedPayments
bucket-key: cpms-checking/checkForOrphanedPayments/${{ needs.build-names.outputs.pretty_branch_name }}.zip
permissions:
id-token: write
secrets:
AWS_ROLE_TO_ASSUME_ARN: ${{ secrets.AWS_ROLE_TO_ASSUME_ARN }}
AWS_ACCOUNT: ${{ secrets.RSP_AWS_ACCOUNT }}
AWS_REGION: ${{ secrets.RSP_AWS_REGION }}
BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME }}