Skip to content

Commit

Permalink
fix: remove failing GitHub Action (action-slack-node)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirtawast committed Dec 20, 2023
1 parent a9f66d7 commit 69ab8f4
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 157 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/bf-shared-frontend-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,3 @@ jobs:
run: yarn test:coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
- name: Shared test failure slack notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: ${{ job.status }}
SLACK_USERNAME: GitHub-Alerts
SLACK_TITLE: ${{ github.workflow }} has *FAILED*!
SLACK_MESSAGE: "*Benefit-shared tests have failed on ${{ github.ref }}!*"
SLACK_CHANNEL: yjdh-alerts
if: failure() && (contains(github.ref, 'develop') || contains(github.ref, 'main'))
20 changes: 0 additions & 20 deletions .github/workflows/ks-empl-frontend-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,6 @@ jobs:
run: yarn test:coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
- name: Frontend test failure slack notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: ${{ job.status }}
SLACK_USERNAME: GitHub-Alerts
SLACK_TITLE: ${{ github.workflow }} has *FAILED*!
SLACK_MESSAGE: "*Frontend tests have failed on ${{ github.ref }}!*"
SLACK_CHANNEL: yjdh-alerts
if: failure() && (contains(github.ref, 'develop') || contains(github.ref, 'main'))

build:
name: Build
Expand All @@ -74,13 +64,3 @@ jobs:
env:
NEXTJS_DISABLE_SENTRY: true
run: yarn build
- name: Frontend build failure slack notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: ${{ job.status }}
SLACK_USERNAME: GitHub-Alerts
SLACK_TITLE: ${{ github.workflow }} has *FAILED*!
SLACK_MESSAGE: "*Frontend build has failed on ${{ github.ref }}!*"
SLACK_CHANNEL: yjdh-alerts
if: failure() && (contains(github.ref, 'develop') || contains(github.ref, 'main'))
20 changes: 0 additions & 20 deletions .github/workflows/ks-handler-frontend-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,6 @@ jobs:
run: yarn test:coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
- name: Frontend test failure slack notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: ${{ job.status }}
SLACK_USERNAME: GitHub-Alerts
SLACK_TITLE: ${{ github.workflow }} has *FAILED*!
SLACK_MESSAGE: "*Frontend tests have failed on ${{ github.ref }}!*"
SLACK_CHANNEL: yjdh-alerts
if: failure() && (contains(github.ref, 'develop') || contains(github.ref, 'main'))

build:
name: Build
Expand All @@ -74,13 +64,3 @@ jobs:
env:
NEXTJS_DISABLE_SENTRY: true
run: yarn build
- name: Frontend build failure slack notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: ${{ job.status }}
SLACK_USERNAME: GitHub-Alerts
SLACK_TITLE: ${{ github.workflow }} has *FAILED*!
SLACK_MESSAGE: "*Frontend build has failed on ${{ github.ref }}!*"
SLACK_CHANNEL: yjdh-alerts
if: failure() && (contains(github.ref, 'develop') || contains(github.ref, 'main'))
14 changes: 2 additions & 12 deletions .github/workflows/ks-shared-frontend-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Kesaseteli-shared Lint, Unit and Component tests

on:
push:
branches: [ main ]
branches: [main]
pull_request:
paths:
- '.github/workflows/ks-shared-frontend-tests.yml'
- ".github/workflows/ks-shared-frontend-tests.yml"
workflow_dispatch:
defaults:
run:
Expand Down Expand Up @@ -38,13 +38,3 @@ jobs:
run: yarn test:coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
- name: Shared test failure slack notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: ${{ job.status }}
SLACK_USERNAME: GitHub-Alerts
SLACK_TITLE: ${{ github.workflow }} has *FAILED*!
SLACK_MESSAGE: "*Kesaseteli-shared tests have failed on ${{ github.ref }}!*"
SLACK_CHANNEL: yjdh-alerts
if: failure() && (contains(github.ref, 'develop') || contains(github.ref, 'main'))
20 changes: 0 additions & 20 deletions .github/workflows/ks-youth-frontend-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,6 @@ jobs:
run: yarn test:coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
- name: Frontend test failure slack notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: ${{ job.status }}
SLACK_USERNAME: GitHub-Alerts
SLACK_TITLE: ${{ github.workflow }} has *FAILED*!
SLACK_MESSAGE: "*Frontend tests have failed on ${{ github.ref }}!*"
SLACK_CHANNEL: yjdh-alerts
if: failure() && (contains(github.ref, 'develop') || contains(github.ref, 'main'))

build:
name: Build
Expand All @@ -74,13 +64,3 @@ jobs:
env:
NEXTJS_DISABLE_SENTRY: true
run: yarn build
- name: Frontend build failure slack notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: ${{ job.status }}
SLACK_USERNAME: GitHub-Alerts
SLACK_TITLE: ${{ github.workflow }} has *FAILED*!
SLACK_MESSAGE: "*Frontend build has failed on ${{ github.ref }}!*"
SLACK_CHANNEL: yjdh-alerts
if: failure() && (contains(github.ref, 'develop') || contains(github.ref, 'main'))
14 changes: 2 additions & 12 deletions .github/workflows/shared-frontend-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Shared Lint, Unit and Component tests

on:
push:
branches: [ main ]
branches: [main]
pull_request:
paths:
- '.github/workflows/shared-tests.yml'
- ".github/workflows/shared-tests.yml"
workflow_dispatch:
defaults:
run:
Expand Down Expand Up @@ -38,13 +38,3 @@ jobs:
run: yarn test:coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
- name: Shared test failure slack notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: ${{ job.status }}
SLACK_USERNAME: GitHub-Alerts
SLACK_TITLE: ${{ github.workflow }} has *FAILED*!
SLACK_MESSAGE: "*Shared tests have failed on ${{ github.ref }}!*"
SLACK_CHANNEL: yjdh-alerts
if: failure() && (contains(github.ref, 'develop') || contains(github.ref, 'main'))
20 changes: 0 additions & 20 deletions .github/workflows/te-admn-frontend-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,6 @@ jobs:
run: yarn test:coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
- name: Frontend test failure slack notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: ${{ job.status }}
SLACK_USERNAME: GitHub-Alerts
SLACK_TITLE: ${{ github.workflow }} has *FAILED*!
SLACK_MESSAGE: "*Frontend tests have failed on ${{ github.ref }}!*"
SLACK_CHANNEL: yjdh-alerts
if: failure() && (contains(github.ref, 'develop') || contains(github.ref, 'main'))

build:
name: Build
Expand All @@ -74,13 +64,3 @@ jobs:
env:
NEXTJS_DISABLE_SENTRY: true
run: yarn build
- name: Frontend build failure slack notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: ${{ job.status }}
SLACK_USERNAME: GitHub-Alerts
SLACK_TITLE: ${{ github.workflow }} has *FAILED*!
SLACK_MESSAGE: "*Frontend build has failed on ${{ github.ref }}!*"
SLACK_CHANNEL: yjdh-alerts
if: failure() && (contains(github.ref, 'develop') || contains(github.ref, 'main'))
14 changes: 2 additions & 12 deletions .github/workflows/te-shared-frontend-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: (TET) Shared Frontend Lint, Unit and Component tests

on:
push:
branches: [ main ]
branches: [main]
pull_request:
paths:
- '.github/workflows/te-shared-frontend-tests.yml'
- ".github/workflows/te-shared-frontend-tests.yml"
workflow_dispatch:
defaults:
run:
Expand Down Expand Up @@ -38,13 +38,3 @@ jobs:
run: yarn test:coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
- name: Shared test failure slack notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: ${{ job.status }}
SLACK_USERNAME: GitHub-Alerts
SLACK_TITLE: ${{ github.workflow }} has *FAILED*!
SLACK_MESSAGE: "*TET-shared tests have failed on ${{ github.ref }}!*"
SLACK_CHANNEL: yjdh-alerts
if: failure() && (contains(github.ref, 'develop') || contains(github.ref, 'main'))
20 changes: 0 additions & 20 deletions .github/workflows/te-yout-frontend-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,6 @@ jobs:
run: yarn test:coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
- name: Frontend test failure slack notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: ${{ job.status }}
SLACK_USERNAME: GitHub-Alerts
SLACK_TITLE: ${{ github.workflow }} has *FAILED*!
SLACK_MESSAGE: "*Frontend tests have failed on ${{ github.ref }}!*"
SLACK_CHANNEL: yjdh-alerts
if: failure() && (contains(github.ref, 'develop') || contains(github.ref, 'main'))

build:
name: Build
Expand All @@ -74,13 +64,3 @@ jobs:
env:
NEXTJS_DISABLE_SENTRY: true
run: yarn build
- name: Frontend build failure slack notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: ${{ job.status }}
SLACK_USERNAME: GitHub-Alerts
SLACK_TITLE: ${{ github.workflow }} has *FAILED*!
SLACK_MESSAGE: "*Frontend build has failed on ${{ github.ref }}!*"
SLACK_CHANNEL: yjdh-alerts
if: failure() && (contains(github.ref, 'develop') || contains(github.ref, 'main'))
12 changes: 1 addition & 11 deletions .github/workflows/yarn-audit-scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: [main]
pull_request:
paths:
- '.github/workflows/yarn-audit-scheduled.yml'
- ".github/workflows/yarn-audit-scheduled.yml"
defaults:
run:
working-directory: ./frontend
Expand Down Expand Up @@ -35,13 +35,3 @@ jobs:
run: yarn --prefer-offline --frozen-lockfile --check-files
- name: Run audit
run: yarn audit-ci --config audit-ci.jsonc
- name: Yarn audit scan failure slack notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: ${{ job.status }}
SLACK_USERNAME: GitHub-Alerts
SLACK_TITLE: ${{ github.workflow }} has *FAILED*!
SLACK_MESSAGE: "*Yarn audit has found some vulnerabilities!*"
SLACK_CHANNEL: yjdh-alerts
if: failure()

0 comments on commit 69ab8f4

Please sign in to comment.