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
46 changes: 0 additions & 46 deletions .github/workflows/build.yml

This file was deleted.

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
30 changes: 30 additions & 0 deletions .github/workflows/distribute-reusable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Distribute PushOk - Reusable

on:
workflow_call:
inputs:
branch:
required: true
type: string

jobs:
trigger:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}

- name: Get last 3 commit messages
run: |
commits=$(git log -3 --pretty=format:"%s")
echo "commits=$commits" >> $GITHUB_ENV

- name: Trigger build workflow in react-native-app repo
run: |
curl --location 'https://mindbox.gitlab.yandexcloud.net/api/v4/projects/1512/trigger/pipeline' \
--form 'token="${{ secrets.GITLAB_TRIGGER_TOKEN }}"' \
--form 'ref="develop"' \
--form "variables[INPUT_BRANCH]=\"${{ inputs.branch }}\"" \
--form "variables[INPUT_COMMITS]=\"${{ env.commits }}\""
24 changes: 0 additions & 24 deletions .github/workflows/distribute.yml

This file was deleted.

18 changes: 9 additions & 9 deletions .github/workflows/gitleaks-secrets-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ jobs:
name: gitleaks
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Run Gitleaks
uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITLEAKS_LICENSE: ${{ secrets.MINDBOX_GITLEAKS_LICENSE }}
- name: Run Gitleaks
uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITLEAKS_LICENSE: ${{ secrets.MINDBOX_GITLEAKS_LICENSE }}
49 changes: 49 additions & 0 deletions .github/workflows/lint_and_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: UnitTests + Lint

on:
push:
branches:
- develop
- mission/*
pull_request:
types:
- opened
- reopened
- synchronize

jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup node JS
uses: actions/setup-node@v2
with:
node-version: 14
registry-url: https://registry.npmjs.org

- name: Setup local environment
run: yarn

- name: Run unit tests
run: yarn test

lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup node JS
uses: actions/setup-node@v2
with:
node-version: 14
registry-url: https://registry.npmjs.org

- name: Setup local environment
run: yarn

- name: Run linting
run: yarn lint
Loading
Loading