Compare commits

..

4 Commits

Author SHA1 Message Date
Leonid Pershin
b188afd9ab Update workflow to trigger on 'dev' branch instead of 'develop'
All checks were successful
Tests / Run Tests (push) Successful in 3m10s
Tests / Run Tests (pull_request) Successful in 2m52s
SonarQube / Build and analyze (pull_request) Successful in 3m55s
2025-10-23 09:43:15 +03:00
Leonid Pershin
3e3df20d84 Update build workflow to trigger on pull requests instead of pushes 2025-10-23 09:41:27 +03:00
Leonid Pershin
e54d44b581 Enhance workflow configurations by adding timeouts for build, publish, and test jobs
All checks were successful
SonarQube / Build and analyze (pull_request) Successful in 3m27s
Tests / Run Tests (pull_request) Successful in 2m34s
2025-10-23 09:14:15 +03:00
Leonid Pershin
738ae73ebd fix pub
All checks were successful
SonarQube / Build and analyze (pull_request) Successful in 12m33s
Tests / Run Tests (pull_request) Successful in 3m36s
2025-10-23 07:56:42 +03:00
3 changed files with 6 additions and 9 deletions

View File

@@ -1,14 +1,14 @@
name: SonarQube
on:
push:
pull_request:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
name: Build and analyze
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Set up JDK 17
uses: actions/setup-java@v4

View File

@@ -1,10 +1,7 @@
name: Publish Docker Image
on:
workflow_run:
workflows: ["SonarQube", "Tests"]
types:
- completed
push:
branches:
- master
@@ -12,8 +9,7 @@ jobs:
publish:
name: Build and Publish to Harbor
runs-on: ubuntu-latest
# Запускаем только если предыдущий workflow успешно завершился
if: ${{ github.event.workflow_run.conclusion == 'success' }}
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4

View File

@@ -3,7 +3,7 @@ on:
push:
branches:
- master
- develop
- dev
pull_request:
types: [opened, synchronize, reopened]
@@ -11,6 +11,7 @@ jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with: