mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 13:17:53 +00:00
968eee6698
* chore: bump Playwright to v1.32.1
* test: fix locators, remove unnecessary awaits
* chore: bump Playwright in ci workflows
* test: better selectors for yAxis configs
- fix tests
* chore: bump Playwright to 1.32.3
* refactor: ensure openmct starts after plugins install
* fix: wait for domcontentloaded on initial nav
* test: fix autoscale snapshot test
* test: fix `--max-failures` argname typo
* test: update old locators
* test(fix): add missing await
* test: fix typo 😅
44 lines
1.5 KiB
YAML
44 lines
1.5 KiB
YAML
name: "e2e-couchdb"
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
types:
|
|
- labeled
|
|
- opened
|
|
jobs:
|
|
e2e-couchdb:
|
|
if: ${{ github.event.label.name == 'pr:e2e:couchdb' }} || ${{ github.event.action == 'opened' }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 'lts/gallium'
|
|
- run: npx playwright@1.32.3 install
|
|
- run: npm install
|
|
- name: Start CouchDB Docker Container and Init with Setup Scripts
|
|
run : |
|
|
export $(cat src/plugins/persistence/couch/.env.ci | xargs)
|
|
docker-compose -f src/plugins/persistence/couch/couchdb-compose.yaml up --detach
|
|
sleep 3
|
|
bash src/plugins/persistence/couch/setup-couchdb.sh
|
|
bash src/plugins/persistence/couch/replace-localstorage-with-couchdb-indexhtml.sh
|
|
- name: Run CouchDB Tests and publish to deploysentinel
|
|
env:
|
|
DEPLOYSENTINEL_API_KEY: ${{ secrets.DEPLOYSENTINEL_API_KEY }}
|
|
run: npm run test:e2e:couchdb
|
|
- name: Publish Results to Codecov.io
|
|
env:
|
|
SUPER_SECRET: ${{ secrets.CODECOV_TOKEN }}
|
|
run: npm run cov:e2e:full:publish
|
|
- name: Archive test results
|
|
if: success() || failure()
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
path: test-results
|
|
- name: Archive html test results
|
|
if: success() || failure()
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
path: html-test-results
|