Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test deployment failure discord notify #14

Merged
merged 1 commit into from
Sep 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading