From 4462921f9c8376cacc7c3a365a0dd01134d43e23 Mon Sep 17 00:00:00 2001 From: ltakeishi <134709424+ltakeishi@users.noreply.github.com> Date: Wed, 1 Nov 2023 11:39:38 -0300 Subject: [PATCH 1/3] Create go.yml --- .github/workflows/go.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..28d7858 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,39 @@ +# This workflow will build a golang project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + +name: Go + +on: + push: + branches: [ "Aula_1" ] + pull_request: + branches: [ "Aula_1" ] + +jobs: + + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.20' + + - name: Build DB + run: docker-compose build + + - name: Create DB + run: doker-compose up -d + + - name: Test + run: go test -v main_test.go + + build: + needs: test + runs-on: ubuntu-latest + steps: + + - name: Build + run: go build -v main.go From a8cc350ec6a4084e803167df409133d6c99c4ad5 Mon Sep 17 00:00:00 2001 From: Luana Takeishi Date: Wed, 1 Nov 2023 11:54:12 -0300 Subject: [PATCH 2/3] Go YML --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 28d7858..71a7c5c 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -25,7 +25,7 @@ jobs: run: docker-compose build - name: Create DB - run: doker-compose up -d + run: docker-compose up -d - name: Test run: go test -v main_test.go From 2dfdfbc285dbde18cf2da857887be73d614463bd Mon Sep 17 00:00:00 2001 From: Luana Takeishi Date: Wed, 1 Nov 2023 11:57:43 -0300 Subject: [PATCH 3/3] Run pipelines on "Aula_5" --- .github/workflows/go.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 71a7c5c..98d9b54 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -5,9 +5,9 @@ name: Go on: push: - branches: [ "Aula_1" ] + branches: [ "Aula_5" ] pull_request: - branches: [ "Aula_1" ] + branches: [ "Aula_5" ] jobs: