mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-16 14:36:22 +00:00
23 lines
500 B
Go
23 lines
500 B
Go
|
// SPDX-License-Identifier: MIT
|
||
|
|
||
|
package integration
|
||
|
|
||
|
import (
|
||
|
"net/url"
|
||
|
"testing"
|
||
|
|
||
|
"code.gitea.io/gitea/modules/setting"
|
||
|
"code.gitea.io/gitea/modules/test"
|
||
|
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
)
|
||
|
|
||
|
func Test_CmdForgejo_Actions(t *testing.T) {
|
||
|
onGiteaRun(t, func(*testing.T, *url.URL) {
|
||
|
defer test.MockVariable(&setting.Actions.Enabled, true)()
|
||
|
|
||
|
output := cmdForgejoCaptureOutput(t, []string{"forgejo-cli", "actions", "generate-runner-token"})
|
||
|
assert.EqualValues(t, 40, len(output))
|
||
|
})
|
||
|
}
|