Stop tests running twice and revert changes to publish.yml
This commit is contained in:
parent
d9b8a65082
commit
35a7c0fd1f
8
.github/workflows/cypress.yml
vendored
8
.github/workflows/cypress.yml
vendored
@ -30,9 +30,7 @@ jobs:
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 16
|
||||
- name: Install root dependencies and run tests
|
||||
- name: Install root dependencies
|
||||
run: yarn install
|
||||
- name: Build app
|
||||
run: npx nx affected:e2e --target=build --parallel=3
|
||||
- name: Run E2E tests
|
||||
run: npx nx affected:e2e --target=test --parallel=2 --record --key ${{ secrets.CYPRESS_RECORD_KEY }}
|
||||
- name: Run Cypress tests
|
||||
run: npx nx affected:e2e --parallel=5 --record --key ${{ secrets.CYPRESS_RECORD_KEY }}
|
||||
|
24
.github/workflows/publish.yml
vendored
24
.github/workflows/publish.yml
vendored
@ -32,30 +32,6 @@ jobs:
|
||||
- name: Test
|
||||
run: |
|
||||
yarn test:coverage
|
||||
- name: Cypress run
|
||||
uses: cypress-io/github-action@v2
|
||||
with:
|
||||
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: frontend/automation/coverage
|
||||
# run: |
|
||||
# nx e2e explorer-e2e
|
||||
|
||||
- name: Push release to npm (public)
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||
|
Loading…
Reference in New Issue
Block a user