feat : added toast messages for success and failure #11
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
name: CI Pipeline For Frontend | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install frontend dependencies | |
run: npm install | |
- name: Build frontend | |
run: npm run build | |
- name: Test frontend server start | |
run: | | |
npm run dev & | |
sleep 10 # Wait for the server to start | |
curl -f http://localhost:5173 # Change this to the actual port your Vite server runs on |