From 3d3d29499bd0c078795687c08df57658dbdfa7ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elza=20Sim=C3=B5es?= Date: Sun, 22 Sep 2024 15:11:06 -0400 Subject: [PATCH] add build (#2) --- .github/workflows/go.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 2270f88..455f380 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -28,4 +28,13 @@ jobs: args: controllers/ database/ models/ routes/ - name: Test - run: DB_HOST=${{ secrets.DB_HOST }} DB_PASSWORD=${{ secrets.DB_PASSWORD }} DB_USER=${{ secrets.DB_USER }} DB_NAME=${{ secrets.DB_NAME }} DB_PORT=${{ secrets.DB_PORT }} go test -v main_test.go \ No newline at end of file + run: DB_HOST=${{ secrets.DB_HOST }} DB_PASSWORD=${{ secrets.DB_PASSWORD }} DB_USER=${{ secrets.DB_USER }} DB_NAME=${{ secrets.DB_NAME }} DB_PORT=${{ secrets.DB_PORT }} go test -v main_test.go + + - name: Build + run: go build main.go + + - name: Projeto compilado + uses: actions/upload-artifact@v4 + with: + name: projeto_compilado + path: main \ No newline at end of file