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

Commit

Permalink
chore: try fixing integration test (#1070)
Browse files Browse the repository at this point in the history
* chore: try fixing integration test

* fix: another missing directory change

* feat: add cypress step

* fix: use working-directory directive

* refactor: remove matrix test
  • Loading branch information
Skn0tt committed Apr 22, 2022
1 parent b4a14d8 commit b0da17e
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ on:
jobs:
integration:
runs-on: ubuntu-latest
strategy:
matrix:
site: ['netlify/netlify-plugin-nextjs']
steps:
- name: Checking out zip-it-and-ship-it
uses: actions/checkout@v3
Expand All @@ -20,7 +17,7 @@ jobs:
- name: Checking out test site
uses: actions/checkout@v3
with:
repository: '${{ matrix.site }}'
repository: netlify/netlify-plugin-nextjs
path: test-site
- name: Checking out netlify-cli
uses: actions/checkout@v3
Expand Down Expand Up @@ -61,19 +58,35 @@ jobs:
run:
$GITHUB_WORKSPACE/netlify-cli/bin/run deploy --build --json --site ${{ secrets.NETLIFY_SITE_ID }} --auth ${{
secrets.NETLIFY_TOKEN }} --functions .netlify/functions > .netlify-deploy-log.json
working-directory: test-site
working-directory: test-site/demos/default
- name: Parsing deploy result
run: |
node -e "console.log('deploy_log_url=' + require('./.netlify-deploy-log.json').logs)" >> $GITHUB_ENV
node -e "console.log('deploy_url=' + require('./.netlify-deploy-log.json').deploy_url)" >> $GITHUB_ENV
working-directory: test-site
working-directory: test-site/demos/default
- name: Cypress run
uses: cypress-io/github-action@v2
with:
working-directory: test-site
browser: chrome
headless: true
record: true
parallel: true
config-file: cypress/config/ci.json
group: 'ZISI Integration Test - Next'
spec: cypress/integration/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
with:
check-only-first-line: true
unique: true
comment: |
## Integration Test: ${{ matrix.site }}
## Integration Test: netlify/netlify-plugin-nextjs
- **Deploy URL**: ${{ env.deploy_url }}
- **Deploy logs**: ${{ env.deploy_log_url }}

1 comment on commit b0da17e

@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: 6.8s

largeDepsNft: 31.7s

largeDepsZisi: 1m 3s

Please sign in to comment.