lab0-c icon indicating copy to clipboard operation
lab0-c copied to clipboard

Group GitHub Actions logging messages

Open SimonLiu423 opened this issue 8 months ago • 0 comments

Previously, the workflow used to test the code does not group log messages, possibly making the output too lengthy and hard to scroll on the web. Especially the logs generated by dudect/fixture.c, although it shows perfectly fine on local machines by rewriting previous lines in the terminal, github actions does not seem to support it.

The log grouping is done by adding ::group::{title} and ::endgroup:: which are mentioned in github docs. Another argument --group-output is added to scripts/driver.py to optionally enable grouping. Added another target test_ga in Makefile and replaced make test with it in github workflow. ("ga" is the abbreviation for "github actions")

SimonLiu423 avatar Mar 06 '25 10:03 SimonLiu423