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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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",
},
})
}