chore: prefix all Actions related integration tests with TestActions (#9035)

So they can conveniently be run all together with:

`make 'test-sqlite#TestActions'`

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/9035
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
This commit is contained in:
Earl Warren 2025-08-27 08:32:47 +02:00 committed by Earl Warren
commit 014bf73db8
12 changed files with 21 additions and 21 deletions

View file

@ -23,7 +23,7 @@ import (
"github.com/stretchr/testify/assert"
)
func TestAPISearchActionJobs_RepoRunner(t *testing.T) {
func TestActionsAPISearchActionJobs_RepoRunner(t *testing.T) {
defer tests.PrepareTestEnv(t)()
repo := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 1})
@ -47,7 +47,7 @@ func TestAPISearchActionJobs_RepoRunner(t *testing.T) {
assert.Equal(t, job.ID, jobs[0].ID)
}
func TestAPIWorkflowDispatchReturnInfo(t *testing.T) {
func TestActionsAPIWorkflowDispatchReturnInfo(t *testing.T) {
onGiteaRun(t, func(t *testing.T, u *url.URL) {
workflowName := "dispatch.yml"
user2 := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: 2})
@ -102,7 +102,7 @@ jobs:
})
}
func TestAPIGetListActionRun(t *testing.T) {
func TestActionsAPIGetListActionRun(t *testing.T) {
defer tests.PrepareTestEnv(t)()
var (
runIDs = []int64{892, 893, 894}
@ -185,7 +185,7 @@ func TestAPIGetListActionRun(t *testing.T) {
}
}
func TestAPIGetActionRun(t *testing.T) {
func TestActionsAPIGetActionRun(t *testing.T) {
defer tests.PrepareTestEnv(t)()
repo := unittest.AssertExistsAndLoadBean(t, &repo_model.Repository{ID: 63})