Bump aws-sdk from 2.1338.0 to 2.1415.0 #176
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build support-reminders | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
CI: | |
if: >- | |
(github.actor != 'dependabot[bot]') && | |
(github.event.pull_request.head.repo.owner.login == 'guardian' || | |
github.event_name == 'push') | |
# Required by actions-assume-aws-role | |
permissions: | |
id-token: write | |
contents: read | |
name: support-reminders build | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres | |
env: | |
POSTGRES_PASSWORD: postgres | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
steps: | |
- name: Env | |
run: env | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
aws-region: eu-west-1 | |
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }} | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: './.nvmrc' | |
cache: 'yarn' | |
- name: Build project and generate Riff-Raff artefact | |
run: ./script/ci.sh | |
- name: Run unit tests | |
run: yarn test --silent | |
env: | |
TEST_DB_URL: postgresql://localhost/postgres | |
TEST_DB_USER: postgres | |
TEST_DB_PASSWORD: postgres | |
- name: Generate CFN templates from GuCDK | |
run: ./script/cfn.sh | |
- name: Upload to Riff-Raff | |
uses: guardian/actions-riff-raff@v2 | |
with: | |
app: support-reminders | |
configPath: ./riff-raff.yaml | |
contentDirectories: | | |
support-reminders-cloudformation: | |
- ./cdk/cdk.out/SupportReminders-CODE.template.json | |
- ./cdk/cdk.out/SupportReminders-PROD.template.json | |
support-reminders: | |
- ./support-reminders.zip | |