-
Notifications
You must be signed in to change notification settings - Fork 0
Test updates #78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
smalho01
wants to merge
23
commits into
dev
Choose a base branch
from
test-updates
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Test updates #78
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
29eacc7
update config for tests
smalho01 89c046b
Merge pull request #77 from mcode/dev
smalho01 526d1b7
test updates
smalho01 cffa1db
config for ALICE
smalho01 0ee6daa
workflow updates for alice
smalho01 d7f1a10
update actions
smalho01 56c2c46
update timeout
smalho01 c9c4da0
timeout
smalho01 3cfc0b8
Merge pull request #80 from mcode/dev
smalho01 99464ad
test bug fix
smalho01 f939c4c
ci/cd updates
smalho01 ebd6b76
ci/cd - directory
smalho01 848abbf
timeout for ci/cd
smalho01 463f10c
Merge branch 'main' into test-updates
smalho01 d37755c
docker directory updates
smalho01 5c158d6
readme update
smalho01 d2db497
bug fix
smalho01 cfea79e
config timeout
smalho01 31817d8
config updates
smalho01 11f7289
pharmacy buffer timer
smalho01 3e05b26
timeout for failing tests
smalho01 4060fc0
update time - do not reload
smalho01 76fe052
comment out ci/cd
smalho01 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
This file contains hidden or 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=#ReplaceMe | ||
COMPOSE_PROJECT_NAME=rems_demo | ||
VSAC_API_KEY=#ReplaceMe |
This file contains hidden or 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,140 +1,155 @@ | ||
name: Playwright Tests | ||
on: | ||
push: | ||
branches: [ main, dev ] | ||
pull_request: | ||
branches: [ main, dev ] | ||
workflow_dispatch: | ||
inputs: | ||
rems-setup-branch: | ||
description: 'rems set up branch' | ||
required: true | ||
default: 'dev' | ||
rems-intermediary-branch: | ||
description: 'rems intermediary branch' | ||
required: true | ||
default: 'dev' | ||
request-generator-branch: | ||
description: 'request generator branch' | ||
required: true | ||
default: 'dev' | ||
pims-branch: | ||
description: 'pims branch' | ||
required: true | ||
default: 'dev' | ||
rems-admin-branch: | ||
description: 'rems admin branch' | ||
required: true | ||
default: 'dev' | ||
rems-smart-on-fhir-branch: | ||
description: 'rems smart on fhir branch' | ||
required: true | ||
default: 'dev' | ||
rems-test-ehr-branch: | ||
description: 'rems test-ehr branch' | ||
required: true | ||
default: 'dev' | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Output Workflow Inputs | ||
run: | | ||
echo 'Input Variables (defaults to main if not specified):' | ||
echo 'rems set up branch: ${{ github.event.inputs.rems-setup-branch }}' | ||
echo 'rems intermediary branch: ${{ github.event.inputs.rems-intermediary-branch }}' | ||
echo 'test ehr branch: ${{ github.event.inputs.rems-test-ehr-branch }}' | ||
echo 'request generator branch: ${{ github.event.inputs.request-generator-branch }}' | ||
echo 'rems admin branch: ${{ github.event.inputs.rems-admin-branch }}' | ||
echo 'pims branch: ${{ github.event.inputs.pims-branch }}' | ||
echo 'rems smart on fhir branch: ${{ github.event.inputs.rems-smart-on-fhir-branch }}' | ||
|
||
|
||
- name: Checkout rems-setup | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: mcode/rems-setup | ||
path: rems-setup | ||
ref: ${{ github.event.inputs.rems-setup-branch }} | ||
|
||
- name: Checkout rems-intermediary repo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: mcode/rems-intermediary | ||
path: rems-intermediary | ||
submodules: true | ||
ref: ${{ github.event.inputs.rems-intermediary-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 | ||
submodules: 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 | ||
submodules: true | ||
ref: ${{ github.event.inputs.rems-smart-on-fhir-branch }} | ||
|
||
- name: Build containers | ||
run: docker compose -f docker-compose-local-build.yml build --no-cache --pull | ||
working-directory: ./rems-setup | ||
env: | ||
VSAC_API_KEY: ${{secrets.VSAC_API_KEY}} | ||
|
||
- name: Start containers | ||
run: docker compose -f docker-compose-local-build.yml up -d --wait --force-recreate | ||
working-directory: ./rems-setup | ||
env: | ||
VSAC_API_KEY: ${{secrets.VSAC_API_KEY}} | ||
# name: Playwright Tests | ||
# on: | ||
# push: | ||
# branches: [ main, dev ] | ||
# pull_request: | ||
# branches: [ main, dev ] | ||
# workflow_dispatch: | ||
# inputs: | ||
# rems-setup-branch: | ||
# description: 'rems set up branch' | ||
# required: true | ||
# default: 'dev' | ||
# rems-intermediary-branch: | ||
# description: 'rems intermediary branch' | ||
# required: true | ||
# default: 'dev' | ||
# request-generator-branch: | ||
# description: 'request generator branch' | ||
# required: true | ||
# default: 'dev' | ||
# pims-branch: | ||
# description: 'pims branch' | ||
# required: true | ||
# default: 'dev' | ||
# rems-admin-branch: | ||
# description: 'rems admin branch' | ||
# required: true | ||
# default: 'dev' | ||
# rems-smart-on-fhir-branch: | ||
# description: 'rems smart on fhir branch' | ||
# required: true | ||
# default: 'dev' | ||
# rems-test-ehr-branch: | ||
# description: 'rems test-ehr branch' | ||
# required: true | ||
# default: 'dev' | ||
# rems-directory-branch: | ||
# description: 'rems directory branch' | ||
# required: true | ||
# default: 'dev' | ||
|
||
# jobs: | ||
# test: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Output Workflow Inputs | ||
# run: | | ||
# echo 'Input Variables (defaults to main if not specified):' | ||
# echo 'rems set up branch: ${{ github.event.inputs.rems-setup-branch }}' | ||
# echo 'rems intermediary branch: ${{ github.event.inputs.rems-intermediary-branch }}' | ||
# echo 'test ehr branch: ${{ github.event.inputs.rems-test-ehr-branch }}' | ||
# echo 'request generator branch: ${{ github.event.inputs.request-generator-branch }}' | ||
# echo 'rems admin branch: ${{ github.event.inputs.rems-admin-branch }}' | ||
# echo 'pims branch: ${{ github.event.inputs.pims-branch }}' | ||
# echo 'rems smart on fhir branch: ${{ github.event.inputs.rems-smart-on-fhir-branch }}' | ||
# echo 'rems smart on directory branch: ${{ github.event.inputs.rems-directory-branch }}' | ||
|
||
|
||
|
||
# - name: Checkout rems-setup | ||
# uses: actions/checkout@v4 | ||
# with: | ||
# repository: mcode/rems-setup | ||
# path: rems-setup | ||
# ref: ${{ github.event.inputs.rems-setup-branch }} | ||
|
||
# - name: Checkout rems-intermediary repo | ||
# uses: actions/checkout@v4 | ||
# with: | ||
# repository: mcode/rems-intermediary | ||
# path: rems-intermediary | ||
# submodules: true | ||
# ref: ${{ github.event.inputs.rems-intermediary-branch }} | ||
|
||
|
||
# - name: Checkout rems-directory repo | ||
# uses: actions/checkout@v4 | ||
# with: | ||
# repository: mcode/rems-directory | ||
# path: rems-directory | ||
# submodules: true | ||
# ref: ${{ github.event.inputs.rems-directory-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 | ||
# submodules: 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 | ||
# submodules: true | ||
# ref: ${{ github.event.inputs.rems-smart-on-fhir-branch }} | ||
|
||
# - name: Build containers | ||
# run: docker compose -f docker-compose-local-build.yml build --no-cache --pull | ||
# working-directory: ./rems-setup | ||
# env: | ||
# VSAC_API_KEY: ${{secrets.VSAC_API_KEY}} | ||
|
||
# - name: Start containers | ||
# run: docker compose -f docker-compose-local-build.yml up -d --wait --force-recreate | ||
# working-directory: ./rems-setup | ||
# env: | ||
# VSAC_API_KEY: ${{secrets.VSAC_API_KEY}} | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
working-directory: ./rems-setup | ||
|
||
- name: Install Playwright Browsers | ||
run: npx playwright install --with-deps | ||
working-directory: ./rems-setup | ||
|
||
- name: Run Playwright tests | ||
run: npx playwright test | ||
working-directory: ./rems-setup | ||
|
||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: playwright-report | ||
path: ./rems-setup/playwright-report/ | ||
retention-days: 30 | ||
# - uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: 18 | ||
|
||
# - name: Install dependencies | ||
# run: npm ci | ||
# working-directory: ./rems-setup | ||
|
||
# - name: Install Playwright Browsers | ||
# run: npx playwright install --with-deps | ||
# working-directory: ./rems-setup | ||
|
||
# - name: Run Playwright tests | ||
# run: npx playwright test | ||
# working-directory: ./rems-setup | ||
|
||
# - uses: actions/upload-artifact@v4 | ||
# if: always() | ||
# with: | ||
# name: playwright-report | ||
# path: ./rems-setup/playwright-report/ | ||
# retention-days: 30 |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.