+Add a new unit test for sort select list field #338
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cypress Test | |
on: | |
# Run on any commit to the #master branch | |
push: | |
branches: [master] | |
# Run on pull requests into the #master branch | |
pull_request: | |
branches: [master] | |
# Allows user to trigger the workflow from GitHub's web UI | |
workflow_dispatch: | |
jobs: | |
cypress-test: | |
runs-on: ubuntu-latest | |
env: | |
CYPRESS_RESPONSE_TIMEOUT: 200000 | |
CYPRESS_DEFAULT_COMMAND_TIMEOUT: 30000 | |
CYPRESS_RETRIES: 2 | |
steps: | |
# Setup | |
- uses: digi-serve/ab-install-action@v1 | |
with: | |
folder: ab | |
port: 8080 | |
# Up | |
- name: Bring up AppBuilder | |
run: ./UP.sh -q -t | |
working-directory: ./ab | |
- name: Check out | |
uses: actions/checkout@v3 | |
with: | |
path: ab/test/e2e/cypress/e2e/kitchensink_app | |
# These next steps are to save our ablogs to file | |
- run: npm install pm2@latest -g | |
working-directory: ./ab | |
- name: Save Logs | |
run: pm2 start ./logs.js -- --toFile logs/ABServices.log | |
working-directory: ./ab | |
#Run test | |
- name: Wait for AB | |
uses: ifaxity/[email protected] | |
with: | |
resource: http://localhost:8080 | |
timeout: 300000 | |
- name: Run Cypress Tests | |
run: npm run test:e2e:app -- --browser chrome | |
working-directory: ./ab | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: cypress-screenshots | |
path: ./ab/test/e2e/cypress/screenshots | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: ABServices.log | |
path: ./ab/logs/ABServices.log |