Compare commits

...
Author SHA1 Message Date
Jesse Duffield e5e3cc200e fix test names 2023-04-14 20:24:35 +10:00
Jesse Duffield 8e4efddbf7 ensure test list is correct in CI 2023-04-14 20:21:55 +10:00
5 changed files with 10 additions and 6 deletions
+4
View File
@@ -135,6 +135,10 @@ jobs:
# ensure our vendor directory matches up with our go modules # ensure our vendor directory matches up with our go modules
run: | run: |
go mod vendor && git diff --exit-code || (echo "Unexpected change to vendor directory. Run 'go mod vendor' locally and commit the changes" && exit 1) go mod vendor && git diff --exit-code || (echo "Unexpected change to vendor directory. Run 'go mod vendor' locally and commit the changes" && exit 1)
- name: Check Integration Tests List
# ensure our tests list matches up with our generator's output
run: |
go generate pkg/integration/tests/tests.go && git diff --exit-code || (echo "Unexpected change to tests list. Run 'go generate pkg/integration/tests/tests.go' locally and commit the changes" && exit 1)
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
@@ -5,7 +5,7 @@ import (
. "github.com/jesseduffield/lazygit/pkg/integration/components" . "github.com/jesseduffield/lazygit/pkg/integration/components"
) )
var BasicCmdAtRuntime = NewIntegrationTest(NewIntegrationTestArgs{ var BasicAtRuntime = NewIntegrationTest(NewIntegrationTestArgs{
Description: "Using a custom command provided at runtime to create a new file", Description: "Using a custom command provided at runtime to create a new file",
ExtraCmdArgs: "", ExtraCmdArgs: "",
Skip: false, Skip: false,
@@ -5,7 +5,7 @@ import (
. "github.com/jesseduffield/lazygit/pkg/integration/components" . "github.com/jesseduffield/lazygit/pkg/integration/components"
) )
var OmitFromHistory = NewIntegrationTest(NewIntegrationTestArgs{ var BasicAtRuntimeHistory = NewIntegrationTest(NewIntegrationTestArgs{
Description: "Omitting a runtime custom command from history if it begins with space", Description: "Omitting a runtime custom command from history if it begins with space",
ExtraCmdArgs: "", ExtraCmdArgs: "",
Skip: false, Skip: false,
@@ -5,7 +5,7 @@ import (
. "github.com/jesseduffield/lazygit/pkg/integration/components" . "github.com/jesseduffield/lazygit/pkg/integration/components"
) )
var BasicCmdFromConfig = NewIntegrationTest(NewIntegrationTestArgs{ var BasicFromConfig = NewIntegrationTest(NewIntegrationTestArgs{
Description: "Using a custom command to create a new file", Description: "Using a custom command to create a new file",
ExtraCmdArgs: "", ExtraCmdArgs: "",
Skip: false, Skip: false,
+3 -3
View File
@@ -64,9 +64,9 @@ var tests = []*components.IntegrationTest{
conflicts.ResolveExternally, conflicts.ResolveExternally,
conflicts.ResolveMultipleFiles, conflicts.ResolveMultipleFiles,
conflicts.UndoChooseHunk, conflicts.UndoChooseHunk,
custom_commands.BasicCmdFromConfig, custom_commands.BasicAtRuntime,
custom_commands.BasicCmdAtRuntime, custom_commands.BasicAtRuntimeHistory,
custom_commands.OmitFromHistory, custom_commands.BasicFromConfig,
custom_commands.FormPrompts, custom_commands.FormPrompts,
custom_commands.MenuFromCommand, custom_commands.MenuFromCommand,
custom_commands.MenuFromCommandsOutput, custom_commands.MenuFromCommandsOutput,