Skip to content

Commit

Permalink
Fix config scrutinizer y workflows. Se agregan badges fossa
Browse files Browse the repository at this point in the history
  • Loading branch information
estebandelaf committed Sep 24, 2024
1 parent c02ff89 commit 8cf6c52
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 46 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
path: var/tests-coverage.txt

- name: Upload to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: var/tests-coverage.xml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up PHP
uses: shivammathur/setup-php@v2
Expand Down
74 changes: 31 additions & 43 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,36 @@
checks:
php: true

build:
nodes:
analysis:
tests:
override:
- mkdir -p var
- vendor/bin/phpunit --configuration=phpunit.xml
environment:
php:
version: 8.2.1
pecl_extensions:
- xdebug
environment:
variables:
XDEBUG_MODE: coverage
LIBREDTE_TESTS_DIR: tests
LIBREDTE_COMPANY: '76192083-9'
LIBREDTE_ENV_TEST_AUTH_DATE: '2019-12-23'
LIBREDTE_CERTIFICATE_FILE: 'tests/resources/certificates/fake-certificate.pfx'
LIBREDTE_CERTIFICATE_PASS: 'i_love_libredte'
dependencies:
before:
- composer install --no-progress --prefer-dist
- php -m
nodes:
analysis:
tests:
override:
- php-scrutinizer-run
- command: composer tests
coverage:
file: var/tests-coverage.xml
format: clover
environment:
php:
version: 8.2.1
pecl_extensions:
- xdebug
dependencies:
before:
- composer install --no-progress --prefer-dist

tools:
php_code_sniffer:
config:
standard: PSR12
php_cs_fixer:
config: php-cs-fixer.php
php_code_coverage:
config:
clover_file: var/tests-coverage.xml
php_code_sniffer:
enabled: true
config:
standard: PSR12

filter:
paths:
- src/*
excluded_paths:
- resources/*
- tests/*
- tools/*
- vendor/*

checks:
php:
code_rating: true
duplication: true
paths:
- src/*
excluded_paths:
- resources/*
- tests/*
- tools/*
- vendor/*
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
[![Descargas Totales](https://poser.pugx.org/libredte/libredte-lib-core/downloads)](https://packagist.org/packages/libredte/libredte-lib-core)
[![Descargas Mensuales](https://poser.pugx.org/libredte/libredte-lib-core/d/monthly)](https://packagist.org/packages/libredte/libredte-lib-core)
[![Licencia](https://poser.pugx.org/libredte/libredte-lib-core/license)](https://packagist.org/packages/libredte/libredte-lib-core)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FLibreDTE%2Flibredte-lib-core.svg?type=shield&issueType=license)](https://app.fossa.com/projects/git%2Bgithub.com%2FLibreDTE%2Flibredte-lib-core?ref=badge_shield&issueType=license)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FLibreDTE%2Flibredte-lib-core.svg?type=shield&issueType=security)](https://app.fossa.com/projects/git%2Bgithub.com%2FLibreDTE%2Flibredte-lib-core?ref=badge_shield&issueType=security)

LibreDTE es un proyecto que tiene por objetivo proveer Facturación Electrónica Libre para Chile.

Expand Down
6 changes: 6 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ Docs: lib-core
.. image:: https://poser.pugx.org/libredte/libredte-lib-core/license
:target: https://packagist.org/packages/libredte/libredte-lib-core

.. image:: https://app.fossa.com/api/projects/git%2Bgithub.com%2FLibreDTE%2Flibredte-lib-core.svg?type=shield&issueType=license
:target: https://app.fossa.com/projects/git%2Bgithub.com%2FLibreDTE%2Flibredte-lib-core?ref=badge_shield&issueType=license

.. image:: https://app.fossa.com/api/projects/git%2Bgithub.com%2FLibreDTE%2Flibredte-lib-core.svg?type=shield&issueType=security
:target: https://app.fossa.com/projects/git%2Bgithub.com%2FLibreDTE%2Flibredte-lib-core?ref=badge_shield&issueType=security

Bienvenido a la documentación de LibreDTE.

.. toctree::
Expand Down

0 comments on commit 8cf6c52

Please sign in to comment.