Move some Actions related functions from routers to services (#33280)

Move the main logic of `generateTaskContext` and `findTaskNeeds` to the
`services` layer.

This is a part of #32751, since we need the git context and `needs` to
parse the concurrency expressions.

---------

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
Zettat123 2025-01-15 21:34:30 +08:00 committed by GitHub
parent f6dbf0e7b3
commit d0962ce3da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 268 additions and 153 deletions

View file

@ -17,9 +17,7 @@ import (
)
func TestMain(m *testing.M) {
unittest.MainTest(m, &unittest.TestOptions{
FixtureFiles: []string{"action_runner_token.yml"},
})
unittest.MainTest(m)
os.Exit(m.Run())
}