-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (45 loc) · 1.26 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
52
53
name: Build salesforce-message-handler
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
jobs:
CI:
permissions:
id-token: write
contents: read
name: salesforce-message-handler build
runs-on: ubuntu-latest
steps:
- name: Env
run: env
- name: Checkout
uses: actions/checkout@v4
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: eu-west-1
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "corretto"
java-version: "21"
cache: "sbt"
- name: Install sbt
id: sbt
uses: sbt/setup-sbt@8a071aa780c993c7a204c785d04d3e8eb64ef272 # v1.1.0
- name: Compile and package project
run: sbt 'set test in assembly := {}' clean assembly
- name: Upload to Riff-Raff
uses: guardian/actions-riff-raff@v2
with:
app: salesforce-message-handler
configPath: ./riff-raff.yaml
contentDirectories: |
cfn:
- ./cfn.yaml
salesforce-message-handler:
- ./salesforce-message-handler.jar