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 11, 2024
1 parent e652274 commit 0acb61a
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,24 @@ on:
branches: [ main ]
jobs:
build:
env:
CI: true
MONGO_URL: mongodb://localhost/nasa
strategy:
matrix:
node-version: [20.x]
mongodb-version: ['1.8.0']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js version 20
- name: Use Node.js version ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: '20'
node-version: ${{ matrix.node-version }}
- name: MongoDB in GitHub Actions
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}
- run: npm install
- run: npm run build --prefix client

- run: npm test

0 comments on commit 0acb61a

Please sign in to comment.