Run on commit b5992702831a2548f091e2e7f6beee649b92d05b #375
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "[Test] run jest tests (unit and integration)" | |
run-name: "Run on commit ${{github.sha}}" | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Run jest tests on all packages | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:15.2 | |
env: | |
POSTGRES_DB: postgres | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: root | |
POSTGRES_HOST_AUTH_METHOD: trust | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
- 5432:5432 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: "yarn" | |
- name: Install dependencies | |
run: yarn | |
- name: Run tests | |
env: | |
TEST_DB_HOST: "postgres" | |
run: yarn turbo:test |