forked from guardian/prism
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 889 Bytes
/
Copy pathci.yml
File metadata and controls
35 lines (33 loc) · 889 Bytes
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
name: CI
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
jobs:
CI:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v3
- uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}
aws-region: eu-west-1
# Node is needed for CDK
- name: Setup node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
cache-dependency-path: 'cdk/yarn.lock'
# Java is needed for the Scala Play app
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: '11' # TODO read this from the `.java-version` file in the repository
distribution: 'corretto'
- run: ./scripts/ci