Skip to content

fix: resolve 40 failing test suites in CI #2

fix: resolve 40 failing test suites in CI

fix: resolve 40 failing test suites in CI #2

Workflow file for this run

name: Test Suite
on:
pull_request:
push:
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "yarn"
- run: yarn install --frozen-lockfile
- run: npx jest --no-cache --coverage
- uses: actions/upload-artifact@v4
if: always()
with:
name: coverage
path: coverage/
e2e-tests:
runs-on: ubuntu-latest
needs: [unit-tests]
services:
timescaledb:
image: timescale/timescaledb:latest-pg17
env:
POSTGRES_DB: hasura_test
POSTGRES_USER: hasura
POSTGRES_PASSWORD: test_password
ports:
- 5433:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis:
image: redis:8.4-alpine
ports:
- 6380:6379
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "yarn"
- run: yarn install --frozen-lockfile
- run: npx jest --config test/jest-e2e.json --no-cache