Merge pull request #2889 from omnivore-app/chore/run-lint-separate-from-tests

Run lint separately from tests in github action
This commit is contained in:
Jackson Harper
2023-10-09 10:51:07 +08:00
committed by GitHub

View File

@ -89,6 +89,18 @@ jobs:
source ~/.nvm/nvm.sh source ~/.nvm/nvm.sh
yarn build yarn build
yarn lint yarn lint
env:
PG_HOST: localhost
PG_PORT: ${{ job.services.postgres.ports[5432] }}
PG_USER: app_user
PG_PASSWORD: app_pass
PG_DB: omnivore_test
PG_POOL_MAX: 10
ELASTIC_URL: http://localhost:${{ job.services.elastic.ports[9200] }}/
REDIS_URL: redis://localhost:${{ job.services.redis.ports[6379] }}
- name: Tests
run: |
source ~/.nvm/nvm.sh
yarn test yarn test
env: env:
PG_HOST: localhost PG_HOST: localhost