Skip to content

fix(action): moving to project directory in prod #17

fix(action): moving to project directory in prod

fix(action): moving to project directory in prod #17

Workflow file for this run

name: CI
on:
pull_request:
branches: [ "main", "prod" ]
jobs:
test:
runs-on: ubuntu-latest
services:
mongo:
image: mongo:latest
ports:
- 27017:27017
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Create .env file
run: |
touch .env
echo "${{ secrets.DEV_ENV_FILE }}" > .env
- name: Run tests
run: npm test