Compare commits

...

2 Commits

Author SHA1 Message Date
9a109372f2
test: add tests back
All checks were successful
submodules sync / sync (push) Successful in 46s
build / build (push) Successful in 2m20s
build / trigger-build-image (push) Successful in 15s
2025-09-24 21:27:42 -07:00
9f1a097cfa
fix: always run stage when group & groups empty 2025-09-24 21:27:05 -07:00
2 changed files with 5 additions and 3 deletions

View File

@ -29,8 +29,7 @@ prepare-test:
test:
./scripts/prepare_test_repos.sh $(TMP_DIR)
# no students.csv & clang-tidy-18 locally
rm -rf $(TMP_DIR)/submodules/JOJ3-examples/examples/healthcheck
# no clang-tidy-18 locally
rm -rf $(TMP_DIR)/submodules/JOJ3-examples/examples/keyword/clangtidy
go test -count=1 -v ./...

View File

@ -48,7 +48,10 @@ func generateStages(confStages []conf.ConfStage, groups []string) (
s.Name = fmt.Sprintf("stage-%d", i)
}
ok := false
if s.Group != "" {
if s.Group == "" && len(s.Groups) == 0 {
ok = true
}
if !ok && s.Group != "" {
for _, group := range groups {
if strings.EqualFold(group, s.Group) {
ok = true