-
Notifications
You must be signed in to change notification settings - Fork 3
executable file
·98 lines (83 loc) · 2.76 KB
/
accounts-qc-php.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: Accounts Quality Control PHP
on:
pull_request:
types: [opened, reopened, synchronize, labeled]
jobs:
php-linter:
name: PHP Syntax check 5.6|7.2|7.3
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: PHP syntax checker 5.6
uses: prestashop/github-action-php-lint/5.6@master
with:
folder-to-exclude: "! -path \"./tests/*\""
- name: PHP syntax checker 7.2
uses: prestashop/github-action-php-lint/7.2@master
with:
folder-to-exclude: "! -path \"./tests/*\""
- name: PHP syntax checker 7.3
uses: prestashop/github-action-php-lint/7.3@master
with:
folder-to-exclude: "! -path \"./tests/*\""
php-cs-fixer:
name: PHP-CS-FIXER
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run PHP-CS-Fixer
uses: prestashopcorp/github-action-php-cs-fixer@master
phpunit:
name: Testsuite for Prestashop ${{ matrix.presta-versions }}
runs-on: ubuntu-latest
strategy:
matrix:
presta-versions:
- "1.6.1.24-5.6-fpm-stretch"
- "1.6.1.24-7.1"
- "1.7.8.5-7.4"
- "8.1.5-7.4"
- "nightly"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Scoped dependencies
run: make php-scoper
- name: Start container & install module
run: |
make platform-${{ matrix.presta-versions }}
- name: Feature tests
run: |
make phpunit-run-unit
- name: E2e tests
run: |
make phpunit-run-feature
- name: Display logs
if: "!success()"
run: |
make phpunit-display-logs
- name: PHPStan
if: matrix.presta-versions == '1.6.1.24-7.1' || matrix.presta-versions == '1.7.7.8-7.1'
run: |
make phpstan
- name: header-stamp
if: matrix.presta-versions == '1.6.1.24-5.6-fpm-stretch'
run: |
make header-stamp-test
notify-earth:
if: ${{ github.event.action == 'labeled' && github.event.label.name == 'ready to review' }}
runs-on: ubuntu-latest
steps:
- name: Notify everyone when PR is ready to be reviewed
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: 2986CC
SLACK_TITLE: 👀 it's review time!
SLACK_MESSAGE: "🥷 ${{ github.event.pull_request.title }}"
SLACK_FOOTER: "https://github.com/PrestaShopCorp/ps_accounts/pull/${{ github.event.pull_request.number }}"
SLACK_USERNAME: QABot
SLACK_CHANNEL: squad-account-dev
SLACK_ICON: https://avatars.githubusercontent.com/u/56089550?s=48&v=4