Skip to content
This repository has been archived by the owner on Nov 28, 2024. It is now read-only.

Use correct image

Use correct image #16

Workflow file for this run

# Find full documentation here https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
name: CI
on:
pull_request:
# Manual invocation.
workflow_dispatch:
push:
# TODO uncomment these lines
# 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 any race conditions.
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
CI:
runs-on: ubuntu-latest
# See https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
permissions:
# required by aws-actions/configure-aws-credentials
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: CDK build
run: |
npm ci
npm run lint
npm test
npm run synth
# Setup AWS credentials to enable uploading to S3 for Riff-Raff.
# See https://github.com/aws-actions/configure-aws-credentials
- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}
aws-region: eu-west-1
# See https://github.com/guardian/actions-riff-raff
- name: Upload to riff-raff
uses: guardian/actions-riff-raff@v2
with:
projectName: interactives::interactive-tilemaker
configPath: cdk.out/riff-raff.yaml # Generated by https://github.com/guardian/cdk/tree/main/src/experimental/riff-raff-yaml-file
contentDirectories: |
cdk.out:
- cdk.out