-
Notifications
You must be signed in to change notification settings - Fork 12
78 lines (64 loc) · 2.11 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Typerighter CI
on:
workflow_dispatch:
push:
jobs:
CI:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}
aws-region: eu-west-1
- uses: actions/setup-java@v3
with:
java-version: "11"
distribution: "corretto"
cache: "sbt"
- name: Build the stack
run: |
docker-compose up -d
- uses: actions/setup-node@v3
with:
node-version: 16.14.0
cache: "npm"
cache-dependency-path: "**/package-lock.json"
- name: build rule-manager-client
working-directory: ./apps/rule-manager/client
run: |
npm ci
npm run format:check
npm run test
npm run build
- name: cdk synth
working-directory: ./cdk
run: |
yarn install --frozen-lockfile
yarn test
yarn synth
- name: test and build sbt
run: |
set -e
sbt clean compile test scalafmtCheckAll Debian/packageBin
- name: rename checker debian artifact
run: mv apps/checker/target/checker_1.0-SNAPSHOT_all.deb target/typerighter-checker.deb
- name: rename rule manager debian artifact
run: mv apps/rule-manager/target/rule-manager_1.0-SNAPSHOT_all.deb target/typerighter-rule-manager.deb
- name: upload to riff-raff
uses: guardian/actions-riff-raff@v2
with:
configPath: riff-raff.yaml
projectName: Editorial Tools::Typerighter
buildNumberOffset: 1280 # This is the last build number from TeamCity
contentDirectories: |
typerighter-checker:
- target/typerighter-checker.deb
typerighter-rule-manager:
- target/typerighter-rule-manager.deb
typerighter-cloudformation:
- cdk/cdk.out/typerighter-PROD.template.json
- cdk/cdk.out/typerighter-CODE.template.json