Stop tests running twice and revert changes to publish.yml

This commit is contained in:
Joe 2022-03-08 18:51:19 +00:00 committed by Dexter Edwards
parent d9b8a65082
commit 35a7c0fd1f
2 changed files with 3 additions and 29 deletions

View File

@ -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 }}

View File

@ -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}}