Skip to content

Commit

Permalink
Merge pull request #26 from mcode/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
smalho01 authored Jan 12, 2024
2 parents f78e6d8 + 8c3c9d2 commit 732b35a
Show file tree
Hide file tree
Showing 19 changed files with 911 additions and 764 deletions.
4 changes: 0 additions & 4 deletions .docker-sync/daemon.log

This file was deleted.

1 change: 0 additions & 1 deletion .docker-sync/daemon.pid

This file was deleted.

2 changes: 1 addition & 1 deletion .env
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
20 changes: 20 additions & 0 deletions .github/pull_request_template.md
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.

110 changes: 91 additions & 19 deletions .github/workflows/playwright.yml
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
2 changes: 1 addition & 1 deletion .gitignore
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/
Loading

0 comments on commit 732b35a

Please sign in to comment.