on: push

jobs:
  test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        o:
          - { }
        a:
          - [true]
        a2:
          - [{ }]
    steps:
      # comparing == to object with implicit conversion is not allowed
      - run: echo '${{ 'foo' == matrix.o }}'
      # comparing != to array with implicit conversion is not allowed
      - run: echo '${{ 42 != matrix.a }}'
      # comparing == array and incompatible array is not allowed
      - run: echo '${{ matrix.a == matrix.a2 }}'
      # comparing > to null is not allowed
      - run: echo '${{ 1 > null }}'
      # comparing > to bool is not allowed
      - run: echo '${{ false < true }}'
      # comparing >= to object is not allowed
      - run: echo '${{ 'foo' >= matrix.o }}'
      # comparing <= to array is not allowed
      - run: echo '${{ false <= matrix.a }}'
