✅ Github action fails, but running it locally via `act` succeeds
Hello,
I have tests that should read files from a certain path. The entire folder content is copied after build. Can it be that the folder is not accessible by github actions?
9 Replies
check so the directory is named TestImages, case sensitive
This was added, and the output was:
The naming looks fine
This is the error:
and what is on line 115?
Reading a file
From the same path which was copied on build
paste the test code, reading a file usually doesn't throw NRE
SkiaSharp decodes the images, from the file
referenceBitmap is null when the last line is reached:
generatedBitmap.Bytes.SequenceEqual(referenceBitmap.Bytes);
so something with
referenceImagePath
, SKBitmap return null on decode errorYup, changed it to only read the file:
System.IO.DirectoryNotFoundException: Could not find a part of the path '/home/runner/work/qr-code-generator/qr-code-generator/tests/QrCode.Generator.Tests/bin/Release/net9.0/TestImages/Png/marker_3.png'.
dogshit what it is
I will close this because I still want my sanity
Anyway, Thank you
$closeIf you have no further questions, please use /close to mark the forum thread as answered