-
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.
Browse files
Browse the repository at this point in the history
* First draft version * Login to DockerHub * correcting yml * Add wait between steps * Comment line that seems to exit with failure every time (need to confirm) * Renaming response * Change beforeAll and afterAll to one liner --------- Co-authored-by: Maria Lorena Rodriguez Viruel <[email protected]>
- Loading branch information
Showing
8 changed files
with
7,774 additions
and
1,656 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,49 @@ | ||
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: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16.x | ||
- name: Get Docker Hub username | ||
id: get-docker-hub-username | ||
run: echo '::set-output name=dockerhub_username::${{ secrets.DOCKERHUB_USERNAME }}' | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
if: steps.get-docker-hub-username.outputs.dockerhub_username | ||
- name: Install | ||
run: npm install | ||
- name: Run local | ||
run: npm run local | ||
- name: Sleep for 60 seconds | ||
run: sleep 60s | ||
- 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.