-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from mcode/dev
Dev
- Loading branch information
Showing
19 changed files
with
911 additions
and
764 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
VSAC_API_KEY=f6486e93-5f75-481c-a5c1-b6395d7a217d | ||
VSAC_API_KEY=#ReplaceMe | ||
COMPOSE_PROJECT_NAME=rems_demo |
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,20 @@ | ||
## Describe your changes | ||
|
||
Please include a summary of the changes and the related issue/task. Please also include relevant motivation and context. List any dependencies that are required for this change, including links to other pull requests/branches in other repositories if applicable. | ||
|
||
## Issue ticket number and Jira link | ||
|
||
Please include the Jira Ticket Number and Link for this issue/task. | ||
|
||
## Checklist before requesting a review | ||
- [ ] I have performed a self-review of my code | ||
- [ ] Ensure the target / base branch for any feature PR is set to `dev` not main (the only exception to this is releases from `dev` and hotfix branches) | ||
|
||
## Checklist for conducting a review | ||
- [ ] Review the code changes and make sure they all make sense and are necessary. | ||
- [ ] Pull the PR branch locally and test by running through workflow and making sure everything works as it is supposed to. | ||
|
||
## Workflow | ||
|
||
Owner of the Pull Request will be responsible for merge after all requirements are met, including approval from at least one reviewer. Additional changes made after a review will dismiss any approvals and require re-review of the additional updates. Auto merging can be enabled below if additional changes are likely not to be needed. The bot will auto assign reviewers to your Pull Request for you. | ||
|
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 |
---|---|---|
@@ -1,27 +1,99 @@ | ||
name: Playwright Tests | ||
on: | ||
push: | ||
branches: [ main, master ] | ||
branches: [ main, dev, tagging-docker-compose ] | ||
pull_request: | ||
branches: [ main, master ] | ||
branches: [ main, dev, tagging-docker-compose ] | ||
workflow_dispatch: | ||
inputs: | ||
rems-setup-branch: | ||
description: 'rems set up branch' | ||
required: true | ||
default: 'main' | ||
request-generator-branch: | ||
description: 'request generator branch' | ||
required: true | ||
default: 'main' | ||
pims-branch: | ||
description: 'pims branch' | ||
required: true | ||
default: 'main' | ||
rems-admin-branch: | ||
description: 'rems admin branch' | ||
required: true | ||
default: 'main' | ||
rems-smart-on-fhir-branch: | ||
description: 'rems smart on fhir branch' | ||
required: true | ||
default: 'main' | ||
rems-test-ehr-branch: | ||
description: 'rems test-ehr branch' | ||
required: true | ||
default: 'main' | ||
|
||
jobs: | ||
test: | ||
# timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Install Playwright Browsers | ||
run: npx playwright install --with-deps | ||
# - name: Run Playwright tests | ||
# run: npx playwright test | ||
# - uses: actions/upload-artifact@v3 | ||
# if: always() | ||
# with: | ||
# name: playwright-report | ||
# path: playwright-report/ | ||
# retention-days: 30 | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: mcode/rems-setup | ||
path: rems-setup | ||
ref: ${{ github.event.inputs.rems-setup-branch }} | ||
|
||
- name: Checkout test-ehr repo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: mcode/test-ehr | ||
path: test-ehr | ||
ref: ${{ github.event.inputs.rems-test-ehr-branch }} | ||
|
||
- name: Checkout request-generator repo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: mcode/request-generator | ||
path: request-generator | ||
ref: ${{ github.event.inputs.request-generator-branch }} | ||
|
||
- name: Checkout rems-admin repo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: mcode/rems-admin | ||
path: rems-admin | ||
submodule: true | ||
ref: ${{ github.event.inputs.rems-admin-branch }} | ||
|
||
- name: Checkout pims repo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: mcode/pims | ||
path: pims | ||
ref: ${{ github.event.inputs.pims-branch }} | ||
|
||
- name: Checkout rems-smart-on-fhir repo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: mcode/rems-smart-on-fhir | ||
path: rems-smart-on-fhir | ||
submodule: true | ||
ref: ${{ github.event.inputs.rems-smart-on-fhir-branch }} | ||
|
||
- name: Start containers | ||
run: docker-compose -f docker-compose-local-build.yml up -d --wait | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Install Playwright Browsers | ||
run: npx playwright install --with-deps | ||
- name: Run Playwright tests | ||
run: npx playwright test | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: playwright-report | ||
path: playwright-report/ | ||
retention-days: 30 |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.env | ||
.env.local | ||
/playwright-report/ | ||
/playwright/.cache/ | ||
/test-results/ | ||
node_modules/ | ||
.docker-sync/ |
Oops, something went wrong.