General Starter and Redirect Tests #21
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
# This workflow will run the cypress tests that are unrelated to the downloading and | |
# testing of the starter zip files | |
name: General Starter and Redirect Tests | |
on: | |
workflow_dispatch: | |
jobs: | |
use-cypress-test-FeatureVersions: | |
runs-on: ubuntu-latest | |
container: cypress/included:12.5.1 | |
steps: | |
- uses: actions/[email protected] | |
- run: cypress run --browser chrome --env JDK_VERSION="${{ inputs.java_version }}" --config-file /__w/openliberty.io/openliberty.io/src/test/cypressjs/cypress.config.js --spec /__w/openliberty.io/openliberty.io/src/test/cypressjs/cypress/e2e/testFeatureVersions.cy.js | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: cypress-screenshots | |
path: /__w/openliberty.io/openliberty.io/cypress/screenshots/testFeatureVersions.cy.js | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: cypress-videos | |
path: /__w/openliberty.io/openliberty.io/cypress/videos/testFeatureVersions.cy.js.mp4 | |
use-cypress-test-RuntimeReleaseVersions: | |
runs-on: ubuntu-latest | |
container: cypress/included:12.5.1 | |
steps: | |
- uses: actions/[email protected] | |
- run: cypress run --browser chrome --env JDK_VERSION="${{ inputs.java_version }}" --config-file /__w/openliberty.io/openliberty.io/src/test/cypressjs/cypress.config.js --spec /__w/openliberty.io/openliberty.io/src/test/cypressjs/cypress/e2e/testRuntimeReleaseVersions.cy.js | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: cypress-screenshots | |
path: /__w/openliberty.io/openliberty.io/cypress/screenshots/testRuntimeReleaseVersions.cy.js | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: cypress-videos | |
path: /__w/openliberty.io/openliberty.io/cypress/videos/testRuntimeReleaseVersions.cy.js.mp4 | |
use-cypress-test-RedirectURLS: | |
runs-on: ubuntu-latest | |
container: cypress/included:12.5.1 | |
steps: | |
- uses: actions/[email protected] | |
- run: cypress run --browser chrome --env JDK_VERSION="${{ inputs.java_version }}" --config-file /__w/openliberty.io/openliberty.io/src/test/cypressjs/cypress.config.js --spec /__w/openliberty.io/openliberty.io/src/test/cypressjs/cypress/e2e/testRedirectURLs.cy.js | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: cypress-screenshots | |
path: /__w/openliberty.io/openliberty.io/cypress/screenshots/testRedirectURLs.cy.js | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: cypress-videos | |
path: /__w/openliberty.io/openliberty.io/cypress/videos/testRedirectURLs.cy.js.mp4 | |
use-cypress-test-StarterDefaults: | |
runs-on: ubuntu-latest | |
container: cypress/included:12.5.1 | |
steps: | |
- uses: actions/[email protected] | |
- run: cypress run --browser chrome --env JDK_VERSION="${{ inputs.java_version }}" --config-file /__w/openliberty.io/openliberty.io/src/test/cypressjs/cypress.config.js --spec /__w/openliberty.io/openliberty.io/src/test/cypressjs/cypress/e2e/testOLStarterDefaults.cy.js | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: cypress-screenshots | |
path: /__w/openliberty.io/openliberty.io/cypress/screenshots/testOLStarterDefaults.cy.js | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: cypress-videos | |
path: /__w/openliberty.io/openliberty.io/cypress/videos/testOLStarterDefaults.cy.js.mp4 |