Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Commit

Permalink
feat: use cors
Browse files Browse the repository at this point in the history
  • Loading branch information
YanceyOfficial committed Nov 10, 2021
1 parent d1e6d35 commit d8c47cc
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 2 deletions.
38 changes: 37 additions & 1 deletion .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,28 @@ jobs:
- name: Install dependencies
run: yarn

- name: Pre compilation
run: yarn build

# テスト成功時はこちらのステップが実行される
- name: Slack Notification on Success at Testing Stage
if: success()
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: github-actions
SLACK_TITLE: Test Success
SLACK_COLOR: good

# テスト失敗時はこちらのステップが実行される
- name: Slack Notification on Failure at Testing Stage
uses: rtCamp/action-slack-notify@v2
if: failure()
env:
SLACK_CHANNEL: github-actions
SLACK_TITLE: Test Failure
SLACK_COLOR: danger

deployment:
runs-on: ubuntu-latest
needs: test
Expand All @@ -43,3 +61,21 @@ jobs:
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
script: sh ./blog-be-next-deploy.sh

# テスト成功時はこちらのステップが実行される
- name: Slack Notification on Success at Deployment Stage
if: success()
uses: rtCamp/action-slack-notify@v2
env:
SLACK_CHANNEL: github-actions
SLACK_TITLE: Deploy Success
SLACK_COLOR: good

# テスト失敗時はこちらのステップが実行される
- name: Slack Notification on Failure at Deployment Stage
uses: rtCamp/action-slack-notify@v2
if: failure()
env:
SLACK_CHANNEL: github-actions
SLACK_TITLE: Deploy Failure
SLACK_COLOR: danger
14 changes: 14 additions & 0 deletions .github/workflows/slack-notify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
on: push
name: Slack notification for pushing code.
jobs:
slackNotification:
name: Slack Notification when Pushing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Slack Notification when Pushing
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOKS }}
SLACK_CHANNEL: github-actions
SLACK_TITLE: 'You have a push~ :rocket:'
2 changes: 1 addition & 1 deletion src/shared/logger/logger.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const {
ms(),
prettyPrint(),
label({
label: '[UPLOADER SERVICE] ',
label: '[BEG SERVICE] ',
}),
splat(),
),
Expand Down

0 comments on commit d8c47cc

Please sign in to comment.