Skip to content

Commit

Permalink
Prueba ejecutando tests para traer dependencias
Browse files Browse the repository at this point in the history
  • Loading branch information
mbuchwald committed Jul 16, 2023
1 parent 7e32243 commit bfeb4e9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ FROM ubuntu:focal
ADD packages.txt /tmp
ADD goimports.txt /tmp
ADD go.mod /
ADD u_test.go /
ADD nodejs.list /etc/apt/sources.list.d
ADD nodesource.gpg.asc /etc/apt/trusted.gpg.d
ENV DEBIAN_FRONTEND noninteractive
Expand All @@ -20,7 +21,7 @@ ENV GOPATH /go
ENV PATH $GOPATH/bin:$GOROOT/bin:$PATH

RUN grep '^[^ #]' /tmp/goimports.txt | xargs go get && rm -rf /tmp/goimports.txt
RUN mkdir /dwnlds && mv /go.mod /dwnlds && cd /dwnlds && go mod tidy && cd / && rm -rf /dwnlds
RUN mkdir /dwnlds && mv /go.mod /dwnlds && mv /u_test.go /dwnlds && cd /dwnlds && go mod tidy && go test u_test.go && cd / && rm -rf /dwnlds

# TODO: cambiar a $INPUT_PATH antes de correr $INPUT_COMMAND.
ENTRYPOINT ["/bin/sh", "-c"]
13 changes: 13 additions & 0 deletions u_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package install

import (
"testing"

"github.com/stretchr/testify/require"
)

func TestCosa(t *testing.T) {
b := 10
require.EqualValues(t, 10, b)
}

0 comments on commit bfeb4e9

Please sign in to comment.