-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (45 loc) · 1.21 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: ci
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
jobs:
gu-cdk-build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: 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
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: '11'
cache: 'sbt'
- name: Run tests and build JAR
run: sbt test assembly
- name: Generate CDK
working-directory: ./cdk
run: |
npm ci
npm test
npm synth
- name: Upload to Riff-Raff
uses: guardian/actions-riff-raff@v2
with:
projectName: cql::cql-lambda
configPath: ./cdk/cdk.out/riff-raff.yaml
contentDirectories: |
cql-lambda-cloudformation:
- ./cdk/cdk.out/CqlLambda-PROD.template.json
cql-lambda:
- ./handlers/cql-lambda/target/scala-3.3.1/cql-lambda.jar