Skip to content

Commit

Permalink
Add workflow for live lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
Fweddi committed Jul 19, 2024
1 parent 35fc1b3 commit 870f2e3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,20 @@ jobs:
- name: rename rule manager debian artifact
run: mv apps/rule-manager/target/rule-manager_1.0-SNAPSHOT_all.deb target/typerighter-rule-manager.deb

- uses: actions/setup-node@v3
with:
node-version: 20.15.1
cache: "npm"
cache-dependency-path: "**/package-lock.json"

- name: build live-content-lambda
working-directory: ./apps/live-lambda
run: |
npm ci
npm run lint
npm run test
npm run build
- name: upload to riff-raff
uses: guardian/actions-riff-raff@v2
with:
Expand All @@ -73,6 +87,8 @@ jobs:
- target/typerighter-checker.deb
typerighter-rule-manager:
- target/typerighter-rule-manager.deb
typerighter-live-content-lambda:
- dist/typerighter-live-content-lambda.zip
typerighter-cloudformation:
- cdk/cdk.out/typerighter-PROD.template.json
- cdk/cdk.out/typerighter-CODE.template.json
2 changes: 1 addition & 1 deletion apps/live-lambda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"format": "prettier --write src/*.ts",
"prebuild": "rm -rf dist",
"build": "esbuild src/index.ts --bundle --platform=node --target=node20 --outdir=dist",
"postbuild": "cd dist && zip -r example-typescript-lambda.zip ."
"postbuild": "cd dist && zip -r typerighter-live-content-lambda.zip ."
},
"devDependencies": {
"esbuild": "0.23.0",
Expand Down

0 comments on commit 870f2e3

Please sign in to comment.