-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.25 KB
/
ci.yml
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
51
name: Build and Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup JDK and sbt
uses: guardian/setup-scala@v1
- uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}
aws-region: eu-west-1
- name: Build and Test
run: |
sbt compile test assembly
working-directory: ${{ github.workspace }}
- name: Copy jar to root
run: |
cp archive/target/scala-*/football-time-machine-archive.jar .
cp api/target/scala-*/football-time-machine-api.jar .
- uses: guardian/actions-riff-raff@v2
with:
configPath: riff-raff.yaml
projectName: football-time-machine
buildNumberOffset: 90
contentDirectories: |
football-time-machine-archive:
- football-time-machine-archive.jar
football-time-machine-api:
- football-time-machine-api.jar
football-time-machine:
- cfn.yaml