Skip to content

Commit

Permalink
Add github test workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Matias Pan <gh@matiaspan.dev>
  • Loading branch information
matipan committed Jul 5, 2024
1 parent 04e9fc5 commit 81ca65f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
push:
branches:
- main
pull_request:

name: E2E Tests

jobs:
test-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Docker E2E Test
uses: dagger/dagger-for-github@v5
with:
verb: call
module: ./ci
args: test-docker --src . stdout
2 changes: 1 addition & 1 deletion e2e/exec/docker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func TestExecDockerHostNamespaces(t *testing.T) {
defer cleanup()

res := icmd.RunCmd(
icmd.Command("cdebug", "exec", "-l", "debug", "--rm", "-q", targetID, "cat", "/etc/os-release"),
icmd.Command("cdebug", "exec", "--rm", "-q", targetID, "cat", "/etc/os-release"),
)
res.Assert(t, icmd.Success)
assert.Check(t, cmp.Contains(res.Stdout(), "debian"))
Expand Down
3 changes: 0 additions & 3 deletions e2e/internal/fixture/fixture.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ func dockerCmd(args ...string) icmd.Cmd {
return icmd.Command(
"docker", args...,
)
//return icmd.Command(
// "sudo", append([]string{"-E", "docker"}, args...)...,
//)
}

func nerdctlCmd(args ...string) icmd.Cmd {
Expand Down

0 comments on commit 81ca65f

Please sign in to comment.