Skip to content

Commit 24dab62

Browse files
committed
Refactor 'validations' job in CI
1 parent 63907c1 commit 24dab62

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

.github/workflows/main.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,27 @@ name: Tests & Validations
22
on: [ push ]
33

44
jobs:
5-
phpcs:
5+
validations:
66
runs-on: ubuntu-latest
77
steps:
88
- uses: actions/checkout@v3
9-
- name: Run PHP_CodeSniffer
10-
run: docker run --rm -v $(pwd):/data cytopia/phpcs --standard=./phpcs.xml.dist
9+
10+
- name: Setup PHP
11+
uses: shivammathur/setup-php@v2
12+
with:
13+
php-version: '7.4'
14+
extensions: mbstring, intl, json, mongodb-1.16.0, phalcon, xdebug
15+
tools: pecl
16+
ini-values: apc.enable_cli=on, session.save_path=/tmp
17+
18+
- run: composer install --no-interaction --no-ansi --no-progress
19+
20+
- name: run psalm
21+
if: always()
22+
run: vendor/bin/psalm
23+
24+
- name: run phpcs
25+
run: vendor/bin/phpcs
1126

1227
run-tests:
1328
name: PHP ${{ matrix.php-versions }} with Phalcon ${{ matrix.phalcon-versions }}
@@ -27,6 +42,7 @@ jobs:
2742
phalcon-versions: [ '5.0.0', '5.0.1', '5.0.2', '5.0.3', '5.0.4', '5.0.5', '5.1.0', '5.1.1', '5.1.2', '5.1.3', '5.1.4', '5.2.0', '5.2.1', '5.2.2' ]
2843
steps:
2944
- uses: actions/checkout@v3
45+
3046
- name: Setup cache environment
3147
id: cache-env
3248
uses: shivammathur/cache-extensions@v1

Dockerfile

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)