Run on commit f9ba1ca5b79badd60bd5e7b1d9a167c69a93493a #373
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 |