Testing CI pipeline #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#CI PIPELINE FILE | |
name: Build Succeeds on PR | |
on: | |
pull_request: #anytime pull request is made on | |
branches: | |
- main #main branch | |
jobs: | |
build: | |
name: Build the Project | |
runs-on: ubuntu-latest | |
steps: | |
- uses : actions/checkout@v3 # Step 1 - clones the repository with the changes | |
- name : Use Node.js # Step 2 - install node.js on the ubuntu machine | |
uses : actions/setup-node@v3 | |
with : | |
node-version : '20' | |
- name : Install Dependencies # Step 3 - install the dependency | |
run : npm install | |
- name : Generate Prisma client # Step 4 - Generate prisma client | |
run : npm run db:generate | |
- name : Run Build # Step 5 - build | |
run : npm run build #if all the above steps configured then approve that pull request |