mirror of
https://github.com/docker/compose.git
synced 2025-07-23 13:45:00 +02:00
e2e tests in CI
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
a9e76943f6
commit
26e46d7cc8
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -183,6 +183,12 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Set up Docker Model
|
||||||
|
run: |
|
||||||
|
sudo apt-get install docker-model-plugin
|
||||||
|
docker model version
|
||||||
|
docker info
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
|
@ -224,13 +224,23 @@ func findPluginExecutable(pluginExecutableName string) (string, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
bin, err := filepath.Abs(filepath.Join(userDir, dockerUserDir, pluginExecutableName))
|
candidates := []string{
|
||||||
|
filepath.Join(userDir, dockerUserDir),
|
||||||
|
"/usr/local/lib/docker/cli-plugins",
|
||||||
|
"/usr/local/libexec/docker/cli-plugins",
|
||||||
|
"/usr/lib/docker/cli-plugins",
|
||||||
|
"/usr/libexec/docker/cli-plugins",
|
||||||
|
}
|
||||||
|
for _, path := range candidates {
|
||||||
|
bin, err := filepath.Abs(filepath.Join(path, pluginExecutableName))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
if _, err := os.Stat(bin); err == nil {
|
if _, err := os.Stat(bin); err == nil {
|
||||||
return bin, nil
|
return bin, nil
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return "", fmt.Errorf("plugin not found %s: %w", pluginExecutableName, os.ErrNotExist)
|
return "", fmt.Errorf("plugin not found %s: %w", pluginExecutableName, os.ErrNotExist)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,7 +21,6 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestComposeModel(t *testing.T) {
|
func TestComposeModel(t *testing.T) {
|
||||||
t.Skip("require model-cli on GHA runners")
|
|
||||||
c := NewParallelCLI(t)
|
c := NewParallelCLI(t)
|
||||||
defer c.cleanupWithDown(t, "model-test")
|
defer c.cleanupWithDown(t, "model-test")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user