Skip to content

Commit

Permalink
build and test ci pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ApurvaBasule committed Aug 13, 2024
1 parent b5602c0 commit 9ec3da1
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,37 @@ jobs:
mongodb-version: ['5.0']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2

- name: Use Node.js version ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Use MongoDB from GitHub actions
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}

- name: Clean and Install server dependencies
run: |
rm -rf server/node_modules
npm install --prefix server
- name: Install client dependencies
run: npm install --prefix client

- name: Build client
run: npm run build --prefix client

- name: Set Jest permissions
run: chmod +x server/node_modules/.bin/jest

- name: Run Server Tests
run: npm test --prefix server

- name: Run Client Tests
run: npm test --prefix client

- name: Install dependencies
run: npm install

- name: Build and Start Application
run: npm run deploy

- name: Run Tests
run: npm test


0 comments on commit 9ec3da1

Please sign in to comment.