0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-01-25 02:00:54 +01:00
This commit is contained in:
Excellencedev 2025-12-20 06:19:38 +01:00
parent b0811fe686
commit b2f05ff4f7

View File

@ -90,6 +90,14 @@ func TestActionsJobTokenAccessLFS(t *testing.T) {
task.RepoID = repository.ID
err := db.Insert(t.Context(), task)
require.NoError(t, err)
// Enable Actions unit for the repository
err = db.Insert(t.Context(), &repo_model.RepoUnit{
RepoID: repository.ID,
Type: unit_model.TypeActions,
Config: &repo_model.ActionsConfig{},
})
require.NoError(t, err)
session := emptyTestSession(t)
httpContext := APITestContext{
Session: session,