Skip to content

Commit 732b35a

Browse files
authored
Merge pull request #26 from mcode/dev
Dev
2 parents f78e6d8 + 8c3c9d2 commit 732b35a

19 files changed

+911
-764
lines changed

.docker-sync/daemon.log

Lines changed: 0 additions & 4 deletions
This file was deleted.

.docker-sync/daemon.pid

Lines changed: 0 additions & 1 deletion
This file was deleted.

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
VSAC_API_KEY=f6486e93-5f75-481c-a5c1-b6395d7a217d
1+
VSAC_API_KEY=#ReplaceMe
22
COMPOSE_PROJECT_NAME=rems_demo

.github/pull_request_template.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
## Describe your changes
2+
3+
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.
4+
5+
## Issue ticket number and Jira link
6+
7+
Please include the Jira Ticket Number and Link for this issue/task.
8+
9+
## Checklist before requesting a review
10+
- [ ] I have performed a self-review of my code
11+
- [ ] 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)
12+
13+
## Checklist for conducting a review
14+
- [ ] Review the code changes and make sure they all make sense and are necessary.
15+
- [ ] Pull the PR branch locally and test by running through workflow and making sure everything works as it is supposed to.
16+
17+
## Workflow
18+
19+
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.
20+

.github/workflows/playwright.yml

Lines changed: 91 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,99 @@
11
name: Playwright Tests
22
on:
33
push:
4-
branches: [ main, master ]
4+
branches: [ main, dev, tagging-docker-compose ]
55
pull_request:
6-
branches: [ main, master ]
6+
branches: [ main, dev, tagging-docker-compose ]
7+
workflow_dispatch:
8+
inputs:
9+
rems-setup-branch:
10+
description: 'rems set up branch'
11+
required: true
12+
default: 'main'
13+
request-generator-branch:
14+
description: 'request generator branch'
15+
required: true
16+
default: 'main'
17+
pims-branch:
18+
description: 'pims branch'
19+
required: true
20+
default: 'main'
21+
rems-admin-branch:
22+
description: 'rems admin branch'
23+
required: true
24+
default: 'main'
25+
rems-smart-on-fhir-branch:
26+
description: 'rems smart on fhir branch'
27+
required: true
28+
default: 'main'
29+
rems-test-ehr-branch:
30+
description: 'rems test-ehr branch'
31+
required: true
32+
default: 'main'
33+
734
jobs:
835
test:
9-
# timeout-minutes: 60
1036
runs-on: ubuntu-latest
1137
steps:
12-
- uses: actions/checkout@v3
13-
- uses: actions/setup-node@v3
14-
with:
15-
node-version: 18
16-
- name: Install dependencies
17-
run: npm ci
18-
- name: Install Playwright Browsers
19-
run: npx playwright install --with-deps
20-
# - name: Run Playwright tests
21-
# run: npx playwright test
22-
# - uses: actions/upload-artifact@v3
23-
# if: always()
24-
# with:
25-
# name: playwright-report
26-
# path: playwright-report/
27-
# retention-days: 30
38+
- name: Checkout
39+
uses: actions/checkout@v4
40+
with:
41+
repository: mcode/rems-setup
42+
path: rems-setup
43+
ref: ${{ github.event.inputs.rems-setup-branch }}
44+
45+
- name: Checkout test-ehr repo
46+
uses: actions/checkout@v4
47+
with:
48+
repository: mcode/test-ehr
49+
path: test-ehr
50+
ref: ${{ github.event.inputs.rems-test-ehr-branch }}
51+
52+
- name: Checkout request-generator repo
53+
uses: actions/checkout@v4
54+
with:
55+
repository: mcode/request-generator
56+
path: request-generator
57+
ref: ${{ github.event.inputs.request-generator-branch }}
58+
59+
- name: Checkout rems-admin repo
60+
uses: actions/checkout@v4
61+
with:
62+
repository: mcode/rems-admin
63+
path: rems-admin
64+
submodule: true
65+
ref: ${{ github.event.inputs.rems-admin-branch }}
66+
67+
- name: Checkout pims repo
68+
uses: actions/checkout@v4
69+
with:
70+
repository: mcode/pims
71+
path: pims
72+
ref: ${{ github.event.inputs.pims-branch }}
73+
74+
- name: Checkout rems-smart-on-fhir repo
75+
uses: actions/checkout@v4
76+
with:
77+
repository: mcode/rems-smart-on-fhir
78+
path: rems-smart-on-fhir
79+
submodule: true
80+
ref: ${{ github.event.inputs.rems-smart-on-fhir-branch }}
81+
82+
- name: Start containers
83+
run: docker-compose -f docker-compose-local-build.yml up -d --wait
84+
85+
- uses: actions/setup-node@v3
86+
with:
87+
node-version: 18
88+
- name: Install dependencies
89+
run: npm ci
90+
- name: Install Playwright Browsers
91+
run: npx playwright install --with-deps
92+
- name: Run Playwright tests
93+
run: npx playwright test
94+
- uses: actions/upload-artifact@v3
95+
if: always()
96+
with:
97+
name: playwright-report
98+
path: playwright-report/
99+
retention-days: 30

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
.env
21
.env.local
32
/playwright-report/
43
/playwright/.cache/
54
/test-results/
65
node_modules/
6+
.docker-sync/

0 commit comments

Comments
 (0)