mirror of
https://github.com/nasa/openmct.git
synced 2024-12-23 15:02:23 +00:00
15ab0dae50
* Clean up imagery tests, fix display layout test (cherry picked from commit 7d6699fcecb34cf98bac4aa8f9a1b2996736325c) * Code review comments, more cleanup * Add Tabs View suite, extract common actions to functions * Add missing await * remove unnecessary wait * lint * [e2e] playwright v1.25.0 -->v1.25.2 Co-authored-by: John Hill <john.c.hill@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.2 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
|