Skip to content

Commit

Permalink
First draft version
Browse files Browse the repository at this point in the history
  • Loading branch information
Maria Lorena Rodriguez Viruel authored and Maria Lorena Rodriguez Viruel committed Jul 18, 2023
1 parent cd10db0 commit f41156e
Show file tree
Hide file tree
Showing 7 changed files with 7,771 additions and 1,655 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Test

on: [push, pull_request]

jobs:
e2e-tests:
name: E2E Tests
runs-on: ubuntu-latest
env:
POSTGRES_USER: "root"
POSTGRES_PASSWORD: "supercoolpassword"
POSTGRES_DB: "data"
POSTGRES_TABLE: "couchdb"
POSTGRES_SCHEMA: "v1"
DBT_POSTGRES_USER: "dbt_user"
DBT_POSTGRES_PASSWORD: "supercoolpassword"
DBT_POSTGRES_SCHEMA: "dbt"
DBT_POSTGRES_HOST: "postgres"
CHT_PIPELINE_BRANCH_URL: "https://github.com/medic/cht-pipeline.git#main"
COUCHDB_USER: "test"
COUCHDB_PASSWORD: "test"
COUCHDB_DBS: "couchdb couchdb_sentinel"
COUCHDB_HOST: "couchdb"
COUCHDB_PORT: 5984
COUCHDB_SECURE: false
SUPERSET_PASSWORD: "password"
SUPERSET_ADMIN_EMAIL: "[email protected]"
steps:
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16.x
- name: Install and Run Local
run: |
npm install
npm run local
- name: Run e2e tests
run: npm test
8 changes: 8 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
clearMocks: true,
testPathIgnorePatterns: [
'<rootDir>/dist/',
],
};
Loading

0 comments on commit f41156e

Please sign in to comment.