Skip to content

Commit

Permalink
Merge branch 'devops_34' into 'frontend' from pull request #40
Browse files Browse the repository at this point in the history
#34 Изменение frontend.yml для тестов CI/CD
  • Loading branch information
NikitaBuffy authored Dec 10, 2024
2 parents 28c0b66 + 496998b commit d4830a6
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@ on:
pull_request:
branches:
- frontend
push:
branches:
- frontend
types:
- opened
- synchronize

workflow_dispatch:

pull_request_target:
types:
- closed

jobs:
build-and-analyze:
if: github.event.pull_request.merged != true
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -69,7 +75,7 @@ jobs:
npx sonar-scanner -Dsonar.projectKey=$SONAR_PROJECT_KEY -Dsonar.projectName='lenka-messenger' -Dsonar.sources=src -Dsonar.pullrequest.key=${{ github.event.number}} -Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }} -Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }} -Dsonar.scm.revision=${{ github.event.pull_request.head.sha }} -Dsonar.host.url=$SONAR_HOST_URL
deploy-to-dockerhub:
if: github.ref == 'refs/heads/frontend'
if: github.event.pull_request.merged == true && github.event.pull_request.head.ref == 'frontend'
runs-on: ubuntu-latest
needs: build-and-analyze

Expand Down

0 comments on commit d4830a6

Please sign in to comment.