chore(deps): update dependency node to v20.19.5 #320
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | name: example-build-artifacts | |
| # This workflow shows how to split build and test steps with artifacts. | |
| # In the build job, dependencies are installed, the app is built and the build results | |
| # are stored as an artifact using actions/upload-artifact. | |
| # No tests are run in the build job. | |
| # The test jobs use the results from the build job: | |
| # - dependencies and the Cypress binary are installed using dependency caching | |
| # - build results are restored using actions/download-artifact | |
| # | |
| # In the example jobs, the action is called with | |
| # uses: ./ | |
| # which runs the action code from the current branch. | |
| # If you copy this workflow to another repo, replace the line with | |
| # uses: cypress-io/github-action@v6 | |
| on: | |
| push: | |
| branches: | |
| - 'master' | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Build app | |
| uses: ./ | |
| with: | |
| runTests: false # only build app, don't test yet | |
| build: npm run build | |
| working-directory: examples/nextjs | |
| - name: Store build artifacts | |
| uses: actions/upload-artifact@v4 # https://github.com/actions/upload-artifact | |
| with: | |
| name: app | |
| path: examples/nextjs/build | |
| if-no-files-found: error | |
| retention-days: 1 | |
| test: | |
| needs: build | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-24.04, windows-2025, macos-15] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Restore build artifacts | |
| uses: actions/download-artifact@v4 # https://github.com/actions/download-artifact | |
| with: | |
| name: app | |
| path: examples/nextjs/build | |
| - name: Cypress tests | |
| uses: ./ | |
| with: | |
| start: npm start # start server using the build artifacts | |
| wait-on: http://localhost:3000 | |
| working-directory: examples/nextjs |