未执行cypress的Github操作上的Javascript

未执行cypress的Github操作上的Javascript,javascript,docker-compose,cypress,github-actions,Javascript,Docker Compose,Cypress,Github Actions,每次推送时,我都会运行一个github操作作业,其中部署了一个docker compose和一个苗条的项目。之后,我运行了一些cypress测试。当我向html文件添加h1标记时,它会显示出来,但是javascript代码没有被执行。文件和路径正确。在我的机器上,测试运行没有问题 操作yml文件: name: with docker-compose on: release: type: - create push: branches: - mas

每次推送时,我都会运行一个github操作作业,其中部署了一个docker compose和一个苗条的项目。之后,我运行了一些cypress测试。当我向html文件添加h1标记时,它会显示出来,但是javascript代码没有被执行。文件和路径正确。在我的机器上,测试运行没有问题

操作yml文件:

name: with docker-compose
on:
  release:
    type: 
      - create
  push:
    branches:
      - master

jobs:
  mydockercompose:
    timeout-minutes: 6
    runs-on: ubuntu-20.04

    steps:
    - name: Checkout
      uses: actions/checkout@v2
    
    - name: create env
      run: |
        printf "COUCHDB_USER=admin\nCOUCHDB_PASSWORD=password\nCOUCHDB_IP=db\nNODE_ENV=development" > ./backend/.env  
    

    - name: Start containers
      run: docker-compose -f docker-compose-testing.yml up --build -d
    
    - name: Wait / Sleep
      # You may pin to the exact commit or the version.
      # uses: jakejarvis/wait-action@17bc522f2e14945ea2a05bfc72b6cb9e18a066e3
      uses: jakejarvis/wait-action@v0.1.0
      with:
        time: '60s'
        
    - name: docker ps
      if: always()
      run: docker ps
  
    
    - name: curl
      if: always()
      run: curl http://localhost:8000 -v

      
    - name: run cypress test
      if: always()
      run: cd ./frontend && npx cypress run -s ./cypress/integration/test.js
我使用相同的docker compose进行本地测试