1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 10:18:38 +00:00

Add unit tests for action runner token (#27670)

In case the behavior of the register token changes.
This commit is contained in:
Nanguan Lin
2023-10-19 15:24:24 +08:00
committed by GitHub
parent 776b092863
commit 80a0ab350b
3 changed files with 93 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
// Copyright 2023 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package actions
import (
"testing"
"code.gitea.io/gitea/models/unittest"
)
func TestMain(m *testing.M) {
unittest.MainTest(m, &unittest.TestOptions{
FixtureFiles: []string{
"action_runner_token.yml",
},
})
}