mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 05:07:52 +00:00
a7ea5afa59
* Update `IndependentTimeContext` only if its `objectPath` differs * Ensure independent time conductor, fixed and realtime inputs have the right objectPath * [e2e] Add Plan creation test * [e2e] add Create TimeStrip test * mark new faultManagement suite with @unstable * Upgrade to @playwright/test v1.25.0 * Extract `createPlanFromJSON` to appActions * [e2e] Add TimeStrip test for Plans, Independent Time Contexts * [e2e] Move test annotation to the top * [e2e] fix timestrip test * Update docker image so the tests run * update playwright on GHA as well * [e2e] Fix menu test * Error if no objectPath provided Co-authored-by: Shefali <simplyrender@gmail.com> Co-authored-by: Jesse Mazzella <jesse.d.mazzella@nasa.gov>
39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
name: "e2e-couchdb"
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
types:
|
|
- labeled
|
|
- opened
|
|
env:
|
|
OPENMCT_DATABASE_NAME: openmct
|
|
COUCH_ADMIN_USER: admin
|
|
COUCH_ADMIN_PASSWORD: password
|
|
COUCH_BASE_LOCAL: http://localhost:5984
|
|
COUCH_NODE_NAME: nonode@nohost
|
|
jobs:
|
|
e2e-couchdb:
|
|
if: ${{ github.event.label.name == 'pr:e2e:couchdb' }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- run : docker-compose -f src/plugins/persistence/couch/couchdb-compose.yaml up --detach
|
|
- run : sleep 3 # wait until CouchDB has started (TODO: there must be a better way)
|
|
- run : bash src/plugins/persistence/couch/setup-couchdb.sh
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '16'
|
|
- run: npx playwright@1.25.0 install
|
|
- run: npm install
|
|
- run: sh src/plugins/persistence/couch/replace-localstorage-with-couchdb-indexhtml.sh
|
|
- run: npm run test:e2e:couchdb
|
|
- run: ls -latr
|
|
- name: Archive test results
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
path: test-results
|
|
- name: Archive html test results
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
path: html-test-results
|