From 7d4e6a94203053f2edea2599ea62743fd4ae0344 Mon Sep 17 00:00:00 2001 From: Wesley Werneck Date: Sat, 4 Nov 2023 20:53:57 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20refactor:=20move=20main.go=20to?= =?UTF-8?q?=20root=20folder?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BREAKING CHANGE 🚨: be able to install using go install reponame Signed-off-by: Wesley Werneck --- .github/workflows/master.yaml | 4 ++-- .github/workflows/push.yaml | 2 +- cmd/brl-rate-get/main.go => main.go | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename cmd/brl-rate-get/main.go => main.go (100%) diff --git a/.github/workflows/master.yaml b/.github/workflows/master.yaml index a6d0c8f..20ffe98 100644 --- a/.github/workflows/master.yaml +++ b/.github/workflows/master.yaml @@ -49,10 +49,10 @@ jobs: - name: Build Windows if: matrix.platform == 'windows-latest' - run: go build -v -o dist/brl-rate-get-${{ matrix.platform }}_${{ needs.version.outputs.current-version }}.exe ./cmd/brl-rate-get/ + run: go build -v -o dist/brl-rate-get-${{ matrix.platform }}_${{ needs.version.outputs.current-version }}.exe . - name: Build if: matrix.platform != 'windows-latest' - run: go build -v -o dist/brl-rate-get-${{ matrix.platform }}_${{ needs.version.outputs.current-version }} ./cmd/brl-rate-get/ + run: go build -v -o dist/brl-rate-get-${{ matrix.platform }}_${{ needs.version.outputs.current-version }} . - name: Upload Artifact Windows if: matrix.platform == 'windows-latest' diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 1734ed3..2c7fce1 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -24,5 +24,5 @@ jobs: with: go-version: ${{ matrix.go-version }} - uses: actions/checkout@v3 - - run: go vet cmd + - run: go vet . - run: go test ./... -v -cover diff --git a/cmd/brl-rate-get/main.go b/main.go similarity index 100% rename from cmd/brl-rate-get/main.go rename to main.go