Command not found when building a local docker image during workflow

I am struggling to get a custom docker container working on Github actions.

The command docker build -t satis-dev . seems to fail, I set the correct working directory and everything works locally. Please can somebody give me some advice on what I might be missing here.

Here is extract from code

    steps:
      - name: Checkout source code
        uses: "actions/checkout@v2"
      - name: Build Satis Server 
        working-directory: ./tests/TestServer
        run: |
          - docker build -t satis-dev .
 #         - docker run -d -p 8000:80 satis-dev

The commands in run must not be prefixed with - since it’s a multi-line string, not an array or hash.

This must work:

steps:
      - name: Checkout source code
        uses: actions/checkout@v2
      - name: Build Satis Server 
        working-directory: ./tests/TestServer
        run: |
          docker build -t satis-dev .
          docker run -d -p 8000:80 satis-dev

Thank you, I totally missed that.