---
name: build

on:  # yamllint disable-line rule:truthy
  push:
    paths-ignore:
      - README.md
  pull_request:
    branches:
      - master

jobs:
  ansible-lint:
    container:
      image: quay.io/ansible/molecule:3.1.5
    name: Lint Ansible files
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - run: ansible-lint --force-color
  yamllint:
    container:
      image: quay.io/ansible/molecule:3.1.5
    name: Lint YAML files
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - run: yamllint --format github --strict .
  molecule:
    container:
      image: quay.io/ansible/molecule:3.1.5
    name: Execute Molecule mock scenario test
    runs-on: ubuntu-latest
    env:
      PY_COLORS: 1
      ANSIBLE_FORCE_COLOR: 1
    steps:
      - uses: actions/checkout@v2
        run: |
          molecule test --scenario-name mock --parallel

---
name: build

on:  # yamllint disable-line rule:truthy
  push:
    paths-ignore:
      - README.md
  pull_request:
    branches:
      - master

jobs:
  ansible-lint:
    container:
      image: quay.io/ansible/molecule:3.1.5
    name: Lint Ansible files
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - run: ansible-lint --force-color
  yamllint:
    container:
      image: quay.io/ansible/molecule:3.1.5
    name: Lint YAML files
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - run: yamllint --format github --strict .
  molecule:
    container:
      image: quay.io/ansible/molecule:3.1.5
    name: Execute Molecule mock scenario test
    runs-on: ubuntu-latest
    env:
      PY_COLORS: 1
      ANSIBLE_FORCE_COLOR: 1
    steps:
      - uses: actions/checkout@v2
      - run: |
          molecule test --scenario-name mock --parallel

Correct list syntax for discrete step
Correct list syntax for discrete step
