Skip to content

Commit

Permalink
Merge pull request #91 from Nosto/release/3.1.0
Browse files Browse the repository at this point in the history
Bump version and update changelog
  • Loading branch information
olsi-qose authored Feb 18, 2021
2 parents 3ef35a5 + 5b705b9 commit 8182a6c
Show file tree
Hide file tree
Showing 77 changed files with 3,361 additions and 1,754 deletions.
88 changes: 88 additions & 0 deletions .github/workflows/ide.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: PHPStorm

on: [push]

jobs:

ide:
name: IDE Inspection
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

############################################################################
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.2'
tools: composer:v1, prestissimo, pecl
extensions: bcmath, gd, pdo_mysql, soap, zip
coverage: none

- name: Install AST extension
run: sudo pecl install -f ast

#https://github.com/actions/cache/blob/master/examples.md#php---composer
- name: Cache composer packages
id: composer-cache
run: |
composer config cache-files-dir
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Update project dependencies
env:
REPO_USR: ${{ secrets.REPO_USR }}
REPO_PSW: ${{ secrets.REPO_PSW }}
run: |
composer config repositories.0 composer https://repo.magento.com
composer config http-basic.repo.magento.com "$REPO_USR" "$REPO_PSW"
composer install --prefer-dist --no-progress --no-suggest
############################################################################

# Not removing HHVM will lead to the following error:
# > Installation request for hhvm 4.49.0 -> satisfiable by hhvm[4.49.0].
- name: Remove HHVM
id: remove-hhvm
run: sudo apt remove hhvm

- name: Install Magento
id: install-magento
run: |
composer create-project magento/community-edition=2.3.2 magento
cd magento
composer config minimum-stability dev
composer config prefer-stable true
composer require --no-update nosto/module-nostotagging-cmp:dev-${GITHUB_REF#refs/heads/}#${GITHUB_SHA}
composer update --no-dev
bin/magento module:enable --all
bin/magento setup:di:compile
cd ..
cp -r magento/generated vendor/magento/
rm -rf magento
rm -rf vendor/bin
env:
GITHUB_BRANCH: ${{ github.base_ref }}
REPO_USR: ${{ secrets.REPO_USR }}
REPO_PSW: ${{ secrets.REPO_PSW }}

- name: Run PHPStorm
uses: mridang/action-phpstorm@master
with:
target: .
profile: ./.idea/inspectionProfiles/CI.xml
output: ./output
verbosity: v2
scope: Inspection

- name: Archive inspection results
uses: actions/upload-artifact@v1
with:
name: inspection-results
path: output
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.idea
vendor
magento

output
56 changes: 56 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

143 changes: 143 additions & 0 deletions .idea/inspectionProfiles/CI.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/jsLibraryMappings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/libraries/Zip.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions .idea/libraries/_files.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions .idea/libraries/artifacts.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/libraries/evil.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8182a6c

Please sign in to comment.