-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Maria Lorena Rodriguez Viruel
authored and
Maria Lorena Rodriguez Viruel
committed
Jul 18, 2023
1 parent
cd10db0
commit f41156e
Showing
7 changed files
with
7,771 additions
and
1,655 deletions.
There are no files selected for viewing
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
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 |
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
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/', | ||
], | ||
}; |
Oops, something went wrong.