Skip to content

Commit

Permalink
Add pull_request for next build
Browse files Browse the repository at this point in the history
We don't have any tests at all at the moment :grimace:
But at least we can make sure PRs don't totally break the build...
  • Loading branch information
ipc103 committed Mar 6, 2024
1 parent 766f500 commit 9b296c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
pull_request:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
Expand Down Expand Up @@ -115,6 +116,8 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
# Don't deploy PRs, just test the build...
if: github.event_name != "pull_request"
steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down

0 comments on commit 9b296c3

Please sign in to comment.