Skip to content

Commit

Permalink
Check
Browse files Browse the repository at this point in the history
  • Loading branch information
direnakkoc committed Mar 3, 2023
1 parent 0a7ae1c commit d326d65
Show file tree
Hide file tree
Showing 6 changed files with 8,896 additions and 13 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
- name: Package test project with Serverless v2
working-directory: ./serverless-test-project
run: |
npm i serverless@2
npm run test:v2
finish:
needs: build
Expand Down
7 changes: 2 additions & 5 deletions cf-macro/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,8 @@ export function handler (event: Event): Event {
}

const alarmActions = []
if (slicWatchConfig?.topicArn) {
alarmActions.push(slicWatchConfig.topicArn)
} else if (process.env.ALARM_SNS_TOPIC) {
alarmActions.push(process.env.ALARM_SNS_TOPIC)
}
slicWatchConfig?.topicArn && alarmActions.push(slicWatchConfig.topicArn)
process.env.ALARM_SNS_TOPIC && alarmActions.push(process.env.ALARM_SNS_TOPIC)

const context = {
alarmActions
Expand Down
74 changes: 68 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion serverless-test-project-appsync/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"license": "Apache",
"devDependencies": {
"serverless-appsync-plugin": "^2.0.0",
"serverless-iam-roles-per-function": "^3.2.0"
"serverless-iam-roles-per-function": "^3.2.0",
"serverless-slic-watch-plugin": "^2.1.2"
},
"scripts": {
"test": "ALARM_TOPIC=test sls package",
Expand Down
Loading

0 comments on commit d326d65

Please sign in to comment.