mirror of
https://github.com/nasa/openmct.git
synced 2024-12-26 00:01:05 +00:00
a9e3eca35c
* chore: bump Playwright to 1.28.0
* chore: bump playwright to v1.29.0
* fix: remove `|| true` shim for codecov
* Revert "fix: remove `|| true` shim for codecov"
This reverts commit ca3766fb5a
.
* docs: add instructions for upgrading Playwright
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.29.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
|