Skip to content

Commit 408a69d

Browse files
committed
Se agrega github actions ci.yml
1 parent de620b5 commit 408a69d

1 file changed

Lines changed: 59 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: CI
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
tests:
14+
name: Tests
15+
timeout-minutes: 10
16+
runs-on: ${{ matrix.os }}
17+
strategy:
18+
matrix:
19+
os: [ubuntu-latest]
20+
php-version: ['8.5']
21+
22+
steps:
23+
- name: Check out repository
24+
uses: actions/checkout@v4
25+
26+
- name: Set up PHP ${{ matrix.php-version }}
27+
uses: shivammathur/setup-php@v2
28+
with:
29+
php-version: ${{ matrix.php-version }}
30+
extensions: mbstring, xdebug
31+
tools: composer
32+
33+
- name: Display PHP version
34+
run: php -v
35+
36+
- name: Install Dependencies
37+
run: composer install --no-progress --no-suggest --prefer-dist
38+
39+
- name: Run PHP Coding Standards Fixer
40+
run: vendor/bin/php-cs-fixer fix -v --dry-run --diff --config=php-cs-fixer.php
41+
42+
- name: Run PHPStan
43+
run: vendor/bin/phpstan analyse --configuration=phpstan.neon --memory-limit=1G
44+
45+
# - name: Run PHPUnit
46+
# run: XDEBUG_MODE=coverage vendor/bin/phpunit --configuration=phpunit.xml
47+
48+
# - name: Upload PHPUnit result report
49+
# if: failure()
50+
# uses: actions/upload-artifact@v4
51+
# with:
52+
# name: tests-testdox-php_${{ matrix.php-version }}.txt
53+
# path: var/tests-testdox.txt
54+
55+
# - name: Upload Coverage Report
56+
# uses: actions/upload-artifact@v4
57+
# with:
58+
# name: tests-coverage-php_${{ matrix.php-version }}.txt
59+
# path: var/tests-coverage.txt

0 commit comments

Comments
 (0)