Installing two neo4j servers (operating on different ports) via yml in GitHub action workflow

how can I install two neo4j 3.5.x servers (operating on different ports) via yml in GitHub action workflow, give them custom username and password and activate them?

in addition, I need to compile my Java project with JDK 14.

My final (and finished) software engineering degree project

My full yml file so far:

# This workflow will build a Java project with Maven
# For more information see:

name: Java CI with Maven

    branches: [ master ]
    branches: [ master ]


    runs-on: ubuntu-latest

      - uses: actions/checkout@v2
      - name: Set up JDK 14
        uses: actions/setup-java@v1.3.0
          java-version: 14
      - name: setting testing environment 
        run: |
          wget -qO - | sudo apt-key add -
          wget -O - | sudo apt-key add -
          echo 'deb stable 3.5' | sudo tee -a /etc/apt/sources.list.d/neo4j.list
          echo "deb [ arch=amd64,arm64 ] bionic/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list
          sudo add-apt-repository -y ppa:openjdk-r/ppa
          sudo apt-get update
          sudo apt-get install -y neo4j=1:3.5.19 mongodb-org
          sudo systemctl start mongod
          sudo systemctl status mongod
          sudo service neo4j start
          service neo4j-service status
      - name: Build with Maven
        run: mvn -B clean:clean compiler:compile source:jar assembly:single --file pom.xml
      - uses: "marvinpinto/action-automatic-releases@v1.0.0"
          repo_token: "${{ secrets.GITHUB_TOKEN }}"
          automatic_release_tag: "latest"
          prerelease: true
          title: "Development Build"
          files: |