docs: update documentation #10
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: 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 |