From 2444a1b907aa56a5110e938409241e7779b7f2ff Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Mon, 9 Oct 2023 10:37:57 +0800 Subject: [PATCH] Run lint separately from tests in github action Attempting to make the github action output a little more manageable. --- .github/workflows/run-tests.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index e292ed9b5..c7270a166 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -89,6 +89,18 @@ jobs: source ~/.nvm/nvm.sh yarn build 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 env: PG_HOST: localhost