Dear Mr. Reazei, inquisitive question indeed. Cyanobacteria form tiny lenses similar to the human eye to detect light and move towards its source. For more-
It will move towards light if they are photo-tactic, they can move away from light if they are photo-repelling or have no effect. The explanation is given in answer above.