Skip to content

Commit

Permalink
Merged master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelmaksimov25 committed Aug 22, 2023
2 parents 78514cd + 414b425 commit 45a8042
Show file tree
Hide file tree
Showing 238 changed files with 8,874 additions and 5,104 deletions.
48 changes: 47 additions & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,50 @@
coverage:
range: 95..100
range: 70..80
round: nearest
precision: 2

ignore:
- "app"
- "assets"
- "bin"
- "build"
- "config"
- "db"
- "docs"
- "frontend"
- "infrastructure"
- "public"
- "Sniffs"
- "translations"
- "var"
- "vendor"
- "src/Core/Application/Dependency"
- "src/Core/Application/DependencyInjection"
- "src/Core/Application/Dto"
- "src/Core/Application/Exception"
- "src/Core/Application/Resources"
- "src/Core/Domain"
- "src/Core/SprykerSdkCoreBundle.php"
- "src/Extension/DependencyInjection"
- "src/Extension/Resources"
- "src/Extension/SprykerSdkExtensionBundle.php"
- "src/Infrastructure/DependencyInjection"
- "src/Infrastructure/Dto"
- "src/Infrastructure/Entity"
- "src/Infrastructure/Event"
- "src/Infrastructure/Exception"
- "src/Infrastructure/Resources"
- "src/Infrastructure/SprykerSdkInfrastructureBundle.php"
- "src/Presentation/Console/DependencyInjection"
- "src/Presentation/Console/Resources"
- "src/Presentation/Ide/Dto"
- "src/Presentation/RestApi/Enum"
- "src/Presentation/RestApi/Exception"
- "src/Presentation/RestApi/Resources"
- "src/Presentation/RestApi/SprykerSdkRestApiBundle.php"
- "**/*.md"
- "**/*.yml"
- "**/*.yaml"
- "**/*.json"
- "**/*.xml"
- "**/*.lock"
2 changes: 1 addition & 1 deletion .env.prod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###> telemetry
TELEMETRY_ENABLED=true
TELEMETRY_TRANSPORT=data_lake
TELEMETRY_SERVER_URL=https://uvg36eyk46.execute-api.eu-central-1.amazonaws.com/sdk
TELEMETRY_SERVER_URL=https://data.prod.spryker-dwh.net/sdk
###< telemetry
5 changes: 5 additions & 0 deletions .env.sprykerci
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
###> telemetry
TELEMETRY_ENABLED=true
TELEMETRY_TRANSPORT=data_lake
TELEMETRY_SERVER_URL=https://data.prod.spryker-dwh.net/sdk
###< telemetry
171 changes: 85 additions & 86 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,94 +1,93 @@
name: CI

on:
pull_request:
push:
branches:
- master
- develop
- feature/[a-z]+-[0-9]+/dev-*
workflow_dispatch:
pull_request:
push:
branches:
- master
- develop
- feature/[a-z]+-[0-9]+/dev-*
workflow_dispatch:

env:
APP_ENV: test # Symfony application environment
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

jobs:
validation:
name: "CS, PHPStan, Security"
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
php-version: [
'7.4',
'8.0',
'8.1'
]

steps:
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, ctype, iconv
tools: composer:v2
- uses: actions/setup-node@v3
with:
node-version: 14
- uses: bahmutov/npm-install@v1
with:
useLockFile: false

- name: Composer get cache directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Composer cache
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Composer validate
run: composer validate

- name: Composer version
run: composer --version

- name: Composer install
run: composer install

- name: Run PHPStan
run: composer stan

- name: Run CodeStyle checks
run: composer cs-check

- name: Codecept unit tests
run: composer test

- name: Codecept unit tests
run: composer test-extension

- name: Install SDK
run: bin/console sdk:init:hidden-sdk -n

- name: Codecept acceptance tests
run: composer test-qa

- name: Codecept tests with coverage
if: ${{ matrix.php-version == '8.0' }}
run: composer test-cover

- name: Upload coverage results to Coveralls
if: ${{ matrix.php-version == '8.0' }}
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
composer global require "php-coveralls/php-coveralls" "symfony/console: ^5.4"
php-coveralls --coverage_clover=tests/_output/coverage.xml --json_path=tests/_output/coveralls-upload.json -vvv
validation:
name: "CS, PHPStan, Security"
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
php-version: [
'7.4',
'8.1'
]

steps:
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, ctype, iconv
tools: composer:v2
- uses: actions/setup-node@v3
with:
node-version: 14
- uses: bahmutov/npm-install@v1
with:
useLockFile: false

- name: Composer get cache directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Composer cache
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Composer validate
run: composer validate

- name: Composer version
run: composer --version

- name: Composer install
run: composer install

- name: Run PHPStan
run: composer stan

- name: Run CodeStyle checks
run: composer cs-check

- name: Codecept unit tests
run: composer test

- name: Codecept unit tests
run: composer test-vcs-connector-extension

- name: Codecept unit tests
run: composer test-inspection-doc-extension

- name: Install SDK
run: bin/console sdk:init:hidden-sdk -n

- name: Codecept acceptance tests
run: composer test-qa

- name: Codecept tests with coverage
if: ${{ matrix.php-version == '8.1' }}
run: composer test-cover

- name: Code Coverage Report
if: success() && matrix.php-version == '8.1'
uses: codecov/codecov-action@v1
45 changes: 45 additions & 0 deletions .github/workflows/integrator-dependency-update-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Update Integrator dependencies

env:
TARGET_BRANCH: rc
DEPENDENCY: spryker-sdk/integrator
PR_BRANCH: update-dependencies
PR_LABELS: composer dependencies
PR_ASSIGNEES: pavelmaksimov25,DmytroKlymanSpryker
PR_REVIEWERS: pavelmaksimov25,DmytroKlymanSpryker

on:
repository_dispatch:
types: [ integrator_dependency_updated ]

jobs:
update-dependencies:
runs-on: ubuntu-latest
steps:
- id: commit
uses: pr-mpt/actions-commit-hash@v2

- name: Checkout project
uses: actions/checkout@v3
with:
ref: ${{ env.TARGET_BRANCH }}

- name: Update dependencies
run: composer update ${{ env.DEPENDENCY }} --no-scripts --no-progress --no-install

- name: Commit, push and create pull request
uses: peter-evans/create-pull-request@v5
with:
title: Updated ${{ env.DEPENDENCY }}
body: |
This pull request updates ${{ env.DEPENDENCY }} dependency to the latest version.
commit-message: Updated ${{ env.DEPENDENCY }} dependency
committer: SprykerReleaseBot <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@example.test>
base: ${{ env.TARGET_BRANCH }}
branch: ${{ env.PR_BRANCH }}
branch-suffix: timestamp
labels: ${{ env.PR_LABELS }}
delete-branch: true
assignees: ${{ env.PR_ASSIGNEES }}
reviewers: ${{ env.PR_REVIEWERS }}
Loading

0 comments on commit 45a8042

Please sign in to comment.