diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 87d176a..9780e5a 100755 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -25,15 +25,18 @@ jobs: - name: Environment Information run: go env + + - name: List Packages or Modules + run: go list ./server/source/main.go - name: Report Mistakes in Package - run: go vet ./server + run: go vet ./server/source/main.go - name: Update Package to New APIs - run: go fix ./server + run: go fix ./server/source/main.go - name: Format Package - run: go fmt ./server + run: go fmt ./server/source/main.go - name: Compile Package and Dependencies run: GOOS=linux GOARCH=amd64 go build -o ./binary/htdinet ./server/source/main.go diff --git a/data-interchange.Dockerfile b/data-interchange.Dockerfile index c93f8bd..c513426 100755 --- a/data-interchange.Dockerfile +++ b/data-interchange.Dockerfile @@ -14,7 +14,8 @@ RUN echo 'export PATH="$PATH:/usr/bin/go/bin"' >> ~/.bashrc && echo 'export PATH RUN wget https://go.dev/dl/go1.23.4.linux-amd64.tar.gz && tar --extract --file ./*.gz --verbose RUN mv ./go1.23.4.linux-amd64/go /usr/bin RUN go env -RUN go vet ./server -RUN go fix ./server -RUN go fmt ./server +RUN go list ./server/source/main.go +RUN go vet ./server/source/main.go +RUN go fix ./server/source/main.go +RUN go fmt ./server/source/main.go RUN GOOS=linux GOARCH=amd64 go build -o ./binary/htdinet ./server/source/main.go