Skip to content

Commit a2b21ff

Browse files
authored
Merge pull request #14 from devserkan/test-discord-notify-failure
test deployment failure discord notify
2 parents 604b2cf + 852a295 commit a2b21ff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/pipeline.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
message: "**${{ github.event.head_commit.message }}**\n**Creator:** ${{ github.event.head_commit.author.username }}\n${{ github.event.head_commit.url }}"
4141
webhook_url: ${{ secrets.DISCORD_WEBHOOK }}
4242
username: 'devserkan'
43-
colour: #1f883d
43+
colour: '#1f883d'
4444
- name: Notify Discord on failure
4545
if: ${{ failure() && env.SHOULD_DEPLOY == 'true' }}
4646
uses: stegzilla/discord-notify@v2
@@ -49,7 +49,7 @@ jobs:
4949
message: "**${{ github.event.head_commit.message }}**\n**Creator:** ${{ github.event.head_commit.author.username }}\n${{ github.event.head_commit.url }}"
5050
webhook_url: ${{ secrets.DISCORD_WEBHOOK }}
5151
username: 'devserkan'
52-
colour: #d73a49
52+
colour: '#d73a49'
5353
tag_release:
5454
if: ${{ github.event_name == 'push' && !contains(join(github.event.commits.*.message), '#skip') }}
5555
needs: [simple_deployment_pipeline]

test/PokemonPage.jest.spec.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ describe('<PokemonPage />', () => {
114114
})
115115

116116
expect(screen.getByText('Previous')).toHaveAttribute('href', '/pokemon/ditto')
117-
expect(screen.getByText('Next')).toHaveAttribute('href', '/pokemon/vaporeon')
117+
expect(screen.getByText('Previous')).toHaveAttribute('href', '/pokemon/vaporeon')
118118
})
119119

120120
it('should not render previous and next urls if none exist', async () => {

0 commit comments

Comments
 (0)