-
Notifications
You must be signed in to change notification settings - Fork 5
31 lines (28 loc) · 876 Bytes
/
integration.yml
File metadata and controls
31 lines (28 loc) · 876 Bytes
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
name: CI
on: [push, pull_request]
jobs:
build-test:
runs-on: ubuntu-20.04
steps:
- name: checkout project
uses: actions/checkout@v3
- name: install composer version2
uses: php-actions/composer@v6
with:
progress: yes
version: 2
php_version: "7.4"
#- name: composer install missing files
# run: composer1 install
- name: create directories
run: mkdir logs
- name: copy config
run: cp config/_config.php config/config.php
- name: Display PHP version
run: php7.4 --version
- name: run phpcs for PSR12 coding style checks
run: php7.4 ./vendor/bin/phpcs -np --standard=PSR12 --ignore=".src/Templates" ./src
- name: run test - php unit
run: php7.4 ./vendor/bin/phpunit --testdox
- name: run static code analysis - psalm
run: php7.4 ./vendor/bin/psalm