Skip to content

Commit

Permalink
Fix build tests (#3095)
Browse files Browse the repository at this point in the history
* Restore functions cache

* Trigger Build

* update cypress workflow

* Trigger Build

* use same command as playwright
  • Loading branch information
cesarvarela authored Sep 11, 2024
1 parent 8ec2e7b commit 3ae5c1d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,5 @@ jobs:
with:
path: |
site/gatsby-site/public
site/gatsby-site/.cache/functions
site/gatsby-site/netlify/functions
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ inputs.sha }}-${{ inputs.cache-modifier }}
2 changes: 1 addition & 1 deletion .github/workflows/test-playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
with:
path: |
site/gatsby-site/public
site/gatsby-site/.cache/functions
site/gatsby-site/netlify/functions
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ inputs.sha }}-${{ inputs.cache-modifier }}

- name: Install playwright browsers
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
with:
path: |
site/gatsby-site/public
site/gatsby-site/.cache/functions
site/gatsby-site/netlify/functions
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ inputs.sha }}-${{ inputs.cache-modifier }}

- name: Extract branch name
Expand All @@ -91,7 +91,7 @@ jobs:
parallel: true
group: "Cypress e2e tests"
tag: ${{ steps.extract_branch.outputs.branch }}
start: node node_modules/.bin/gatsby serve -p 8000 -H 127.0.0.1
start: npx -y pm2 start npm --name "web-server" -- run serve && npx pm2 logs "web-server"
wait-on: http://127.0.0.1:8000
wait-on-timeout: 60
env:
Expand Down

0 comments on commit 3ae5c1d

Please sign in to comment.