From f32d15612a0627dd99415444daa530622f82b024 Mon Sep 17 00:00:00 2001 From: weebatt <408116@niuitmo.ru> Date: Mon, 2 Jun 2025 14:29:56 +0300 Subject: [PATCH 1/3] chore: adding github actions --- .github/workflows/ci.yml | 56 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..dbf442f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,56 @@ +# 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: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: +build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: '1.24' + + - name: Build auth-service + run: | + cd auth-service + go build -o auth-service ./cmd/main.go + - name: Upload auth-service artifact + uses: actions/upload-artifact@v4 + with: + name: auth-service + path: auth-service/auth-service + retention-days: 7 + + - name: Build task-service + run: | + cd task-service + go build -o task-service ./cmd + - name: Upload task-service artifact + uses: actions/upload-artifact@v4 + with: + name: task-service + path: task-service/task-service + retention-days: 7 + + - name: Build template-service + run: | + cd task-service + go build -o template-service ./cmd + - name: Upload template-service artifact + uses: actions/upload-artifact@v4 + with: + name: template-service + path: template-service/template-service + retention-days: 7 \ No newline at end of file From 94d64373f61405da3be603b1b5ebd851a68a4faf Mon Sep 17 00:00:00 2001 From: weebatt <408116@niuitmo.ru> Date: Mon, 2 Jun 2025 14:32:45 +0300 Subject: [PATCH 2/3] chore: update github actions --- .github/workflows/ci.yml | 88 ++++++++++++++++++++-------------------- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dbf442f..2136d15 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,47 +10,47 @@ on: branches: [ "main" ] jobs: -build: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: '1.24' - - - name: Build auth-service - run: | - cd auth-service - go build -o auth-service ./cmd/main.go - - name: Upload auth-service artifact - uses: actions/upload-artifact@v4 - with: - name: auth-service - path: auth-service/auth-service - retention-days: 7 - - - name: Build task-service - run: | - cd task-service - go build -o task-service ./cmd - - name: Upload task-service artifact - uses: actions/upload-artifact@v4 - with: - name: task-service - path: task-service/task-service - retention-days: 7 - - - name: Build template-service - run: | - cd task-service - go build -o template-service ./cmd - - name: Upload template-service artifact - uses: actions/upload-artifact@v4 - with: - name: template-service - path: template-service/template-service - retention-days: 7 \ No newline at end of file + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: '1.24' + + - name: Build auth-service + run: | + cd auth-service + go build -o auth-service ./cmd/main.go + - name: Upload auth-service artifact + uses: actions/upload-artifact@v4 + with: + name: auth-service + path: auth-service/auth-service + retention-days: 7 + + - name: Build task-service + run: | + cd task-service + go build -o task-service ./cmd + - name: Upload task-service artifact + uses: actions/upload-artifact@v4 + with: + name: task-service + path: task-service/task-service + retention-days: 7 + + - name: Build template-service + run: | + cd task-service + go build -o template-service ./cmd + - name: Upload template-service artifact + uses: actions/upload-artifact@v4 + with: + name: template-service + path: template-service/template-service + retention-days: 7 \ No newline at end of file From 2cd75cc7a122198744c68f2a38068796963614b2 Mon Sep 17 00:00:00 2001 From: weebatt <408116@niuitmo.ru> Date: Mon, 2 Jun 2025 14:35:18 +0300 Subject: [PATCH 3/3] chore: update github actions --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2136d15..fec3b00 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,9 +5,9 @@ name: Go on: push: - branches: [ "main" ] + branches: [ "main", "main-develop" ] pull_request: - branches: [ "main" ] + branches: [ "main", "main-develop" ] jobs: build: