From 6aad4acfeb103ca11ca6ec540ac6c33f0251e3d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Buchwald?= Date: Sun, 16 Jul 2023 15:45:01 -0300 Subject: [PATCH] reupdate --- .github/workflows/docker.yaml | 1 + Dockerfile | 5 +---- u_test.go | 13 ------------- 3 files changed, 2 insertions(+), 17 deletions(-) delete mode 100644 u_test.go diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 2450bab..ba6c921 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -4,6 +4,7 @@ on: paths: - Dockerfile - packages.txt + - goimports.txt - .github/workflows/docker.yaml branches: [v3, test] pull_request: diff --git a/Dockerfile b/Dockerfile index 8682369..3ecb4a6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,6 @@ 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 @@ -20,9 +19,7 @@ ENV GOROOT /usr/lib/go 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 && mv /u_test.go /dwnlds && cd /dwnlds && go mod tidy && go test u_test.go && cd / && rm -rf /dwnlds +RUN grep '^[^ #]' /tmp/goimports.txt | xargs go get && rm -rf /tmp/goimports.txt && rm /go.mod # TODO: cambiar a $INPUT_PATH antes de correr $INPUT_COMMAND. ENTRYPOINT ["/bin/sh", "-c"] diff --git a/u_test.go b/u_test.go deleted file mode 100644 index d1bb75c..0000000 --- a/u_test.go +++ /dev/null @@ -1,13 +0,0 @@ -package install - -import ( - "testing" - - "github.com/stretchr/testify/require" -) - -func TestCosa(t *testing.T) { - b := 10 - require.EqualValues(t, 10, b) -} -