Skip to content

Commit

Permalink
[RELEASE] Socrates v1.3.0 (#113)
Browse files Browse the repository at this point in the history
* Create Europe folder

* Add Europe folder to tests

* Implement USA validator

* Change name to United States instead

* Implement Canada

* Follow PSR

* Small fix

* Sort config validators alphabetically

* Add link to source information for the algorithms of Belgium. (#75)

* Feature/make classes abstract (#88)

* Make Gender.php class abstract

* Make Countries.php class abstract

* Fix ID validation Belgium. (#91)

* Added Chile ID (RUT) validator (#81)

* Implement Chile ID validator and tests

* Added Argentina ID (CUIL/CUIT) validator (#80)

* Implement Argentina ID validator and tests

Co-authored-by: Rodolpho Lima <rodolpholima@diamondbybold.com>

* Added Uruguay ID (IC) validator (#95)

* implement Uruguay ID validator

* improvements uruguay id validator

Co-authored-by: Rodolpho Lima <rodolpholima@diamondbybold.com>

* feat: Mexican ID Validator (#78)

Implement Mexico

* Added Peru ID (CUI) validator (#98)

* Added Peru ID validation

Co-authored-by: Rodolpho Lima <rodolpholima@diamondbybold.com>

* Add german TIN validator (#97)

* Add german TIN validator

* Adjust documentation for germany

* Added Ecuador ID (IC) validator (#104)

* implement ecuador id

* fixes ecuador validator

Co-authored-by: Rodolpho Lima <rodolpholima@diamondbybold.com>

* Add countries constants

* add missing countries and update docs

* Remove Laravel locale detection

* Remove locale detection test

* Add native DateTime support and deprecate the old getDateOfBirth method (#109)

* Add getDateOfBirthNative() method

* Fix Belgium integration

* Update InvalidLengthException.php (#110)

* Improve Contributing Guide (#111)

* Update CONTRIBUTING.md

* Remove unnecessary trim

* Remove unnecessary trim

* Small fix

* [v1.3.0] Disable Luxembourg and improve documentation (#112)

* Remove Luxembourg

* Improve docs

* Fix Luxembourg tests

* Update image

* Update Build yml file

* Add support for PHP 8 (#114)

* Add support for PHP 8

Co-authored-by: João Cruz <joao.fs.cruz97@gmail.com>
Co-authored-by: Yves Bos <yves_bos@outlook.com>
Co-authored-by: bofalke <54977705+bofalke@users.noreply.github.com>
Co-authored-by: Rodolpho Lima <rodolpho.gheleri@gmail.com>
Co-authored-by: Rodolpho Lima <rodolpholima@diamondbybold.com>
Co-authored-by: tiagomichaelsousa <tiagomichaelsousa@gmail.com>
  • Loading branch information
7 people authored Feb 6, 2021
1 parent fcdd328 commit 305b019
Show file tree
Hide file tree
Showing 147 changed files with 3,006 additions and 976 deletions.
2 changes: 1 addition & 1 deletion .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@
"repoType": "github",
"repoHost": "https://github.com",
"skipCi": true
}
}
56 changes: 36 additions & 20 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: Run Tests

on:
push:
Expand All @@ -12,27 +12,43 @@ on:

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.0', '7.4', '7.3', '7.2']
dependency-version: [prefer-lowest, prefer-stable]

name: PHP ${{ matrix.php }} - ${{ matrix.dependency-version }}

steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, intl
ini-values: post_max_size=256M, log_errors=1
coverage: pcov
tools: pecl

- name: Validate composer.json and composer.lock
run: composer validate
- name: Validate composer.json and composer.lock
run: composer validate

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-node-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress --no-suggest

- name: Run test suite
run: vendor/bin/phpunit
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-node-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress --no-suggest

- name: Run test suite
run: vendor/bin/phpunit
Loading

0 comments on commit 305b019

Please sign in to comment.