WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Implement Shared Eligibility Checker #6632

Implement Shared Eligibility Checker

Implement Shared Eligibility Checker #6632

Workflow file for this run

name: CI-Typescript
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
# Ensure we only ever have one build running at a time.
# If we push twice in quick succession, the first build will be stopped once the second starts.
# This avoids multiple deploys happening in quick succession causing AWS rate exceeded errors
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
common:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v5
- run: npm install --global [email protected]
- run: corepack enable
shell: bash
- uses: actions/setup-node@v6
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
- run: pnpm install
- run: pnpm --filter "./buildcheck" type-check
- run: pnpm --filter "./buildcheck" check-formatting
- run: pnpm --filter "./buildcheck" lint
- run: pnpm --filter "./buildcheck" snapshot:assert ROOT
- run: pnpm --filter "./modules/**" check-formatting
- run: pnpm --filter "./modules/**" build
- run: pnpm --filter "./modules/**" lint
- run: pnpm --filter "./modules/**" test
gu-cdk-build:
needs: common
strategy:
fail-fast: false
matrix:
subproject:
- user-benefits
- press-reader-entitlements
- ticket-tailor-webhook
- update-supporter-plus-amount
- product-switch-api
- generate-product-catalog
- alarms-handler
- discount-api
- stripe-disputes
- discount-expiry-notifier
- salesforce-disaster-recovery
- salesforce-disaster-recovery-health-check
- salesforce-event-bus
- zuora-salesforce-link-remover
- metric-push-api
- observer-data-export
- negative-invoices-processor
- write-off-unpaid-invoices
- mparticle-api
- mobile-purchases-to-supporter-product-data
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v5
- run: npm install --global [email protected]
- run: corepack enable
shell: bash
- uses: actions/setup-node@v6
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
- run: pnpm install
- run: pnpm --filter "./buildcheck" snapshot:assert handlers/${{ matrix.subproject }}
- run: pnpm --filter cdk package ${{ matrix.subproject }}
- run: pnpm --filter ${{ matrix.subproject }} package
- name: Upload to Riff-Raff
uses: guardian/actions-riff-raff@v4
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
roleArn: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}
projectName: support-service-lambdas::${{ matrix.subproject }}
buildNumberOffset: 7000
configPath: ./handlers/${{ matrix.subproject }}/riff-raff.yaml
commentingEnabled: 'false'
contentDirectories: |
${{ matrix.subproject }}-cloudformation:
- ./cdk/cdk.out/${{ matrix.subproject }}-CODE.template.json
- ./cdk/cdk.out/${{ matrix.subproject }}-PROD.template.json
${{ matrix.subproject }}:
- ./handlers/${{ matrix.subproject }}/target/${{ matrix.subproject }}.zip