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 be2d823
Show file tree
Hide file tree
Showing 5 changed files with 14,113 additions and 1,141 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ jobs:
flag-name: run-node-${{ matrix.node-version }}
parallel: true
path-to-lcov: coverage/lcov.info
- name: Package test project with Serverless v2
working-directory: ./serverless-test-project
run: |
npm run test:v2
# - name: Package test project with Serverless v2
# working-directory: ./serverless-test-project
# run: |
# npm i serverless@2
# npm run test:v2
finish:
needs: build
runs-on: ubuntu-latest
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
Loading

0 comments on commit be2d823

Please sign in to comment.