Skip to content

Commit

Permalink
Add Cypress run for gantt-chart test
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Liang <[email protected]>
  • Loading branch information
RyanL1997 committed Dec 13, 2023
1 parent 0839431 commit 4d927fe
Showing 1 changed file with 30 additions and 6 deletions.
36 changes: 30 additions & 6 deletions .github/workflows/cypress-e2e-gantt-chart-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,33 @@ jobs:
done
working-directory: OpenSearch-Dashboards

- name: DEBUGGING PWD
run : |
pwd
ls
cd ./OpenSearch-Dashboards/plugins
ls
- name: Install Cypress
run: |
cd ./OpenSearch-Dashboards/plugins/gantt-chart
npx cypress install
shell: bash

- name: Get Cypress version
id: cypress_version
run: |
cd ./OpenSearch-Dashboards/plugins/gantt-chart
echo "::set-output name=cypress_version::$(cat ./package.json | jq '.dependencies.cypress' | tr -d '"')"
- name: Run Cypress tests
run: |
cd ./OpenSearch-Dashboards/plugins/gantt-chart
yarn cypress:run --browser chrome --headless --spec '.cypress/integration/${{ matrix.testgroups }}/*'
- name: Capture failure screenshots
uses: actions/upload-artifact@v1
if: failure()
with:
name: cypress-screenshots-${{ matrix.os }}
path: OpenSearch-Dashboards/plugins/gantt-chart/.cypress/screenshots

- name: Capture test video
uses: actions/upload-artifact@v1
if: always()
with:
name: cypress-videos-${{ matrix.os }}
path: OpenSearch-Dashboards/plugins/gantt-chart/.cypress/videos

0 comments on commit 4d927fe

Please sign in to comment.