Skip to content

Commit

Permalink
Deployment check added
Browse files Browse the repository at this point in the history
  • Loading branch information
eperezme committed Dec 10, 2023
1 parent 5319e9e commit 49480f2
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/pr-deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: PR Deployment

on:
pull_request:
branches:
- main

jobs:
deploy-check:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 14

- name: Install dependencies
run: npm install

- name: Build
run: npm run build

- name: Deployment Check
run: |
if npm run build; then
echo "Deployment check passed. Ready to merge."
else
echo "Deployment check failed. There are errors in the build."
exit 1
fi

0 comments on commit 49480f2

Please sign in to comment.