1+ name : Live activities
2+
3+ on :
4+ push :
5+ paths :
6+ - cdk/**
7+ - liveactivities/**
8+ - api-models/**
9+ - project/**
10+ - build.sbt
11+ - .github/workflows/liveactivities.yml
12+ workflow_dispatch :
13+
14+ # allow queued workflows to interrupt previous runs
15+ concurrency :
16+ group : ${{ github.workflow }}-${{ github.event.number || github.ref }}
17+ cancel-in-progress : true
18+
19+ permissions :
20+ id-token : write
21+ contents : read
22+ checks : write
23+ pull-requests : write
24+
25+ jobs :
26+ build :
27+ runs-on : ubuntu-latest
28+ steps :
29+ - uses : actions/checkout@v6.0.2
30+
31+ - name : Setup JDK and sbt
32+ uses : guardian/setup-scala@v1
33+
34+ - name : Compile, test and assembly
35+ run : sbt "project api-models" "compile" "test" "project liveactivities" "compile" "test" "assembly"
36+
37+ - name : Test Report
38+ uses : dorny/test-reporter@v2
39+ if : success() || failure() # run this step even if previous step failed
40+ with :
41+ name : Tests
42+ path : liveactivities/target/test-reports/TEST-*.xml
43+ reporter : java-junit
44+ only-summary : ' false'
45+ fail-on-error : ' true'
46+
47+ - name : Copy jar to root
48+ run : cp liveactivities/target/scala-*/liveactivities.jar .
49+
50+ - run : corepack enable
51+
52+ - uses : actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
53+ with :
54+ cache : yarn
55+ cache-dependency-path : cdk/yarn.lock
56+ node-version-file : .nvmrc
57+
58+ - name : CDK synth
59+ run : |
60+ cd cdk
61+ yarn install --immutable
62+ yarn lint
63+ yarn test
64+ yarn synth
65+
66+ - name : Upload to riff-raff
67+ uses : guardian/actions-riff-raff@v4
68+ with :
69+ roleArn : ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}
70+ githubToken : ${{ secrets.GITHUB_TOKEN }}
71+ projectName : mobile-n10n:liveactivities
72+ buildNumberOffset : 4147
73+ configPath : liveactivities/riff-raff.yaml
74+
75+ contentDirectories : |
76+ liveactivities:
77+ - liveactivities.jar
78+ mobile-notifications-liveactivities-cfn:
79+ - cdk/cdk.out/LiveActivities-CODE.template.json
0 commit comments