Skip to content

chore(#186): ensure CI fails on test failure and improve test reliability #634

chore(#186): ensure CI fails on test failure and improve test reliability

chore(#186): ensure CI fails on test failure and improve test reliability #634

Workflow file for this run

name: Test
on: [push, pull_request]
env:
INTERNAL_CONTRIBUTOR: ${{ secrets.DOCKERHUB_USERNAME && 'true' }}
jobs:
unit-tests:
name: Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
- run: npm ci
- run: npm ci
working-directory: ./couch2pg
- run: npm run lint
- run: npm run test
e2e-tests:
name: E2E Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
if: ${{ env.INTERNAL_CONTRIBUTOR }}
- run: npm ci
- name: Run e2e tests
run: npm run test:e2e