Skip to content

Commit

Permalink
test failure notify
Browse files Browse the repository at this point in the history
  • Loading branch information
devserkan committed Sep 15, 2024
1 parent 604b2cf commit 852a295
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
message: "**${{ github.event.head_commit.message }}**\n**Creator:** ${{ github.event.head_commit.author.username }}\n${{ github.event.head_commit.url }}"
webhook_url: ${{ secrets.DISCORD_WEBHOOK }}
username: 'devserkan'
colour: #1f883d
colour: '#1f883d'
- name: Notify Discord on failure
if: ${{ failure() && env.SHOULD_DEPLOY == 'true' }}
uses: stegzilla/discord-notify@v2
Expand All @@ -49,7 +49,7 @@ jobs:
message: "**${{ github.event.head_commit.message }}**\n**Creator:** ${{ github.event.head_commit.author.username }}\n${{ github.event.head_commit.url }}"
webhook_url: ${{ secrets.DISCORD_WEBHOOK }}
username: 'devserkan'
colour: #d73a49
colour: '#d73a49'
tag_release:
if: ${{ github.event_name == 'push' && !contains(join(github.event.commits.*.message), '#skip') }}
needs: [simple_deployment_pipeline]
Expand Down
2 changes: 1 addition & 1 deletion test/PokemonPage.jest.spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ describe('<PokemonPage />', () => {
})

expect(screen.getByText('Previous')).toHaveAttribute('href', '/pokemon/ditto')
expect(screen.getByText('Next')).toHaveAttribute('href', '/pokemon/vaporeon')
expect(screen.getByText('Previous')).toHaveAttribute('href', '/pokemon/vaporeon')
})

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

0 comments on commit 852a295

Please sign in to comment.