Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 23 additions & 3 deletions .github/workflows/analyze_and_test.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,29 @@
name: analyze_and_test
name: Analyzes and Tests

on:
push:
branches:
- develop
- mission/*
pull_request:
branches: [ develop ]
types:
- opened
- reopened
- synchronize
workflow_call:
inputs:
branch:
required: true
type: string

jobs:
platform_interface_flutter_test:
name: platform_interface running analyze and tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.branch || github.head_ref }}
- uses: actions/setup-java@v1
with:
java-version: "12.x"
Expand All @@ -29,6 +42,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.branch || github.head_ref }}
- uses: actions/setup-java@v1
with:
java-version: "12.x"
Expand All @@ -50,6 +65,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.branch || github.head_ref }}
- uses: actions/setup-java@v1
with:
java-version: "12.x"
Expand All @@ -71,6 +88,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.branch || github.head_ref }}
- uses: actions/setup-java@v1
with:
java-version: "12.x"
Expand All @@ -86,6 +105,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.branch || github.head_ref }}
- uses: actions/setup-java@v1
with:
java-version: "12.x"
Expand Down Expand Up @@ -125,4 +146,3 @@ jobs:
- run: cd mindbox && flutter pub get
- run: cd mindbox && flutter analyze
- run: cd mindbox && flutter test

17 changes: 17 additions & 0 deletions .github/workflows/distribute-develop-mission.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Distribute PushOk (Develop / Mission PR Merge)

on:
pull_request:
branches:
- develop
- mission/*
types:
- closed

jobs:
call-reusable:
if: ${{ github.event.pull_request.merged == true }}
uses: ./.github/workflows/distribute-reusable.yml
with:
branch: ${{ github.base_ref }}
secrets: inherit
11 changes: 11 additions & 0 deletions .github/workflows/distribute-manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Distribute PushOk (manual)

on:
workflow_dispatch:

jobs:
call-reusable:
uses: ./.github/workflows/distribute-reusable.yml
with:
branch: ${{ github.ref_name }}
secrets: inherit
19 changes: 19 additions & 0 deletions .github/workflows/distribute-release-support-mission.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Distribute PushOk (Release / Support / Mission PRs)

on:
pull_request:
branches:
- master
- support/*
- mission/*
types:
- opened
- synchronize

jobs:
call-reusable:
if: ${{ startsWith(github.event.pull_request.head.ref, 'release/') }}
uses: ./.github/workflows/distribute-reusable.yml
with:
branch: ${{ github.event.pull_request.head.ref }}
secrets: inherit
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
name: Build application after merge
name: Distribute PushOk - Reusable

on:
pull_request:
types: [closed]
branches:
- 'feature/*'
- 'develop'
workflow_call:
inputs:
branch:
required: true
type: string

jobs:
trigger:
runs-on: macos-latest
if: github.event.pull_request.merged == true
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}

- name: Get last 3 commit messages
run: |
Expand All @@ -23,7 +24,7 @@ jobs:
- name: Trigger build workflow in flutter-app repo
run: |
curl --location 'https://mindbox.gitlab.yandexcloud.net/api/v4/projects/1089/trigger/pipeline' \
--form 'token="${{ secrets.GITLAB_TRIGGER_TOKEN }}"' \
--form 'ref="develop"' \
--form "variables[INPUT_BRANCH]=\"${{ github.head_ref }}\"" \
--form "variables[INPUT_COMMITS]=\"${{ env.commits }}\""
--form "token=${{ secrets.GITLAB_TRIGGER_TOKEN }}" \
--form "ref=develop" \
--form "variables[INPUT_BRANCH]=${{ inputs.branch }}" \
--form "variables[INPUT_COMMITS]=${{ env.commits }}"
Loading
Loading