Skip to content

Add commands to only run a type of test #49

Add commands to only run a type of test

Add commands to only run a type of test #49

Workflow file for this run

name: 'Lint, Build and Test API'
on: [push, pull_request]
env:
ENV: development
PORT: 3000
DATABASE_URL: postgres://postgres:password@localhost:5432/mydb
JWT_SECRET: this_is_a_test_secret_value_for_jwt
JWT_EXPIRES_IN: 24
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm install
- run: npm run lint
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm install
- run: npm run build
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm install
- run: npm run test