forked from Nosto/nosto-magento2
-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (70 loc) · 2.43 KB
/
ide.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
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.4'
tools: composer:v2, pecl
extensions: bcmath, gd, pdo_mysql, zip, soap, ast
coverage: none
#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
############################################################################
- name: Install Magento
id: install-magento
run: |
composer create-project magento/community-edition=2.4.4 magento --no-dev
cd magento
composer config minimum-stability dev
composer config prefer-stable true
composer require --no-update nosto/module-nostotagging: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: supercid/action-phpstorm@master
with:
target: .
profile: ./.idea/inspectionProfiles/CI.xml
output: ./output
verbosity: v2
scope: Inspection
- name: Archive inspection results
if: always()
uses: actions/upload-artifact@v2
with:
name: inspection-results
path: output