Skip to content

Commit

Permalink
Merge pull request #249 from universi-me/change#248/adicionar-build-c…
Browse files Browse the repository at this point in the history
…heck-workflow

change: create build-check workflow
  • Loading branch information
julio-ufpb authored Nov 15, 2023
2 parents f4adf12 + 26850a2 commit 74f466a
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build-chack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build Check

on: [push, pull_request]

jobs:
build:
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 --include=dev

- name: Install dependencies
run: npm i --save-dev @types/jest


- name: Set NODE_ENV to production
run: echo "NODE_ENV=production" >> $GITHUB_ENV

- name: Build
run: npm run build

- name: Check for build success
run: |
if [ $? -ne 0 ]; then
echo "Error: 'npm run build' failed"
exit 1
fi

0 comments on commit 74f466a

Please sign in to comment.