How to get the rows of the longest consecutive same value?

Table `Learning`:

| rowID | values |
| --- | --- |
| 1 | 1 |
| 2 | 1 |
| 3 | 0 |
| 4 | 0 |
| 5 | 0 |
| 6 | 1 |
| 7 | 0 |
| 8 | 1 |
| 9 | 1 |
| 10 | 1 |

Longest consecutive value is 1 (`rowID` 8-10 as `rowID` 1-2 is 2 and `rowID` 6-6 is 1). How to query to get the actual rows of consecutive values (not just `rowStart` and `rowEnd` values) like :

| rowID | values |
| --- | --- |
| 8 | 1 |
| 9 | 1 |
| 10 | 1 |

And for longest consecutive values of *both* 1 and 0?

[DB Fiddle](https://www.db-fiddle.com/f/kzTjXmHMdndrnytP7SstK2/0)