Skip to content

Commit

Permalink
add workflow
Browse files Browse the repository at this point in the history
Signed-off-by: ramprasathmk <[email protected]>
  • Loading branch information
ramprasathmk committed Dec 10, 2024
1 parent 1c21f9a commit 51919b6
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/poet-app_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Poet App Test

on:
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
# defaults:
# run:
# working-directory: ./

strategy:
matrix:
node-version: [20.x]
mongodb-version: ['7.0']

env:
PORT: ${{ secrets.PORT }}
MONGODB_URI: ${{ secrets.MONGODB_URI }}

steps:
- name: Git checkout
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Start MongoDB
# See for more info at https://github.com/supercharge/mongodb-github-action/tree/1.11.0/
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}

- name: Install Node Dependencies
run: npm install

- name: Run Test
run: npm test

0 comments on commit 51919b6

Please sign in to comment.