Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
chore: fix e2e tests (#1412)
Browse files Browse the repository at this point in the history
  • Loading branch information
danez authored May 4, 2023
1 parent 1b49659 commit e33a60d
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Integration test

on:
pull_request:
branches: [main, 'chore/ci-integration-tests']
branches: [main]
# Run on release PRs only, or changes to this same file
paths: ['CHANGELOG.md', '.github/workflows/integration-tests.yml']

Expand All @@ -17,7 +17,7 @@ jobs:
- name: Checking out test site
uses: actions/checkout@v3
with:
repository: netlify/netlify-plugin-nextjs
repository: netlify/next-runtime
path: test-site
- name: Checking out netlify-cli
uses: actions/checkout@v3
Expand Down Expand Up @@ -65,30 +65,37 @@ jobs:
node -e "console.log('deploy_url=' + require('./.netlify-deploy-log.json').deploy_url)" >> $GITHUB_ENV
working-directory: test-site/demos/default
- name: Cypress run
uses: cypress-io/github-action@v2
uses: cypress-io/github-action@v5
with:
working-directory: test-site
browser: chrome
headless: true
record: true
parallel: true
config-file: cypress/config/ci.json
config-file: cypress/config/ci.config.ts
group: 'ZISI Integration Test - Next'
spec: cypress/integration/default/*
spec: cypress/e2e/default/*
env:
DEBUG: '@cypress/github-action'
CYPRESS_baseUrl: ${{ env.deploy_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CYPRESS_RECORD_KEY: ${{ secrets.DEFAULT_CYPRESS_RECORD_KEY }}
- name: Posting comment
uses: KeisukeYamashita/create-comment@v1
- name: Find Comment
uses: peter-evans/find-comment@v2
id: fc
with:
check-only-first-line: true
unique: true
comment: |
## Integration Test: netlify/netlify-plugin-nextjs
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: '## Integration Test: netlify/next-runtime'
- name: Create or update comment
uses: peter-evans/create-or-update-comment@v3
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body: |
## Integration Test: netlify/next-runtime
✅ Cypress tests passed
- **Deploy URL**: ${{ env.deploy_url }}
- **Deploy logs**: ${{ env.deploy_log_url }}
edit-mode: replace

1 comment on commit e33a60d

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⏱ Benchmark results

  • largeDepsEsbuild: 2.1s
  • largeDepsNft: 7.1s
  • largeDepsZisi: 14s

Please sign in to comment.