Remove Cypress action

This commit is contained in:
Joe 2022-03-08 18:06:54 +00:00 committed by Dexter Edwards
parent c965a53bb7
commit 1fa63d2260
2 changed files with 7 additions and 27 deletions

View File

@ -18,36 +18,15 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v2
- name: Use Node.js 16 - name: Use Node.js 16
id: Node id: Node
uses: actions/setup-node@v2-beta uses: actions/setup-node@v2
with: with:
node-version: 16 node-version: 16
- name: Install root dependencies - name: Install root dependencies
run: yarn install run: yarn install
- name: Start server - name: Build app and run tests
run: | - run: npx nx affected:e2e --target=build --parallel=3
yarn nx serve explorer & - run: npx nx affected:e2e --target=test --parallel=2 --record --key ${{ secrets.CYPRESS_RECORD_KEY }}
- name: Cypress run
uses: cypress-io/github-action@v2
with:
install: false
wait-on: 'http://localhost:4200'
working-directory: apps/explorer-e2e
wait-on-timeout: 120
record: true
env:
# pass the Dashboard record key as an environment variable
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# Recommended: pass the GitHub token lets this action correctly
# determine the unique run id necessary to re-run the checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# pass the project ID from the secrets through environment variable
CYPRESS_PROJECT_ID: ${{ secrets.PROJECT_ID }}
- uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: coverage
path: apps/explorer-e2e/coverage

View File

@ -1,5 +1,6 @@
{ {
"baseUrl": "http://localhost:4200", "baseUrl": "http://localhost:4200",
"projectId": "et4snf",
"fileServerFolder": ".", "fileServerFolder": ".",
"fixturesFolder": false, "fixturesFolder": false,
"pluginsFile": "./src/plugins/index.js", "pluginsFile": "./src/plugins/index.js",