Skip to content

workflow jobs test

workflow jobs test #17

name: Run Unit Tests
on: [push]
jobs:
run-unit-tests:
name: Run Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
cache-dependency-path: server/package-lock.json
- run: npm ci
working-directory: server
- run: npm run test
working-directory: server
env:
DATABASE_URL: "postgresql://docker:docker@localhost:5432/apisolid?schema=public"
CRYPTO_RANK_API_KEY: ${{ secrets.CRYPTO_RANK_API_KEY }}
JWT_SECRET: ${{ secrets.JWT_SECRET }}
APP_AWS_ACCESS_KEY_ID: ${{ secrets.APP_AWS_ACCESS_KEY_ID }}
APP_AWS_SECRET_ACCESS_KEY: ${{ secrets.APP_AWS_SECRET_ACCESS_KEY }}
APP_AWS_REGION: ${{ secrets.APP_AWS_REGION }}
APP_AWS_BUCKET_NAME: ${{ secrets.APP_AWS_BUCKET_NAME }}
APP_AWS_BASE_URL: ${{ secrets.APP_AWS_BASE_URL }}