Subiendo proyecto completo sin restricciones de git ignore
This commit is contained in:
29
vendor/facade/ignition-contracts/.github/workflows/php-cs-fixer.yml
vendored
Normal file
29
vendor/facade/ignition-contracts/.github/workflows/php-cs-fixer.yml
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
name: Check & fix styling
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
style:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Fix style
|
||||
uses: docker://oskarstark/php-cs-fixer-ga
|
||||
with:
|
||||
args: --config=.php_cs --allow-risky=yes
|
||||
|
||||
- name: Extract branch name
|
||||
shell: bash
|
||||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
|
||||
id: extract_branch
|
||||
|
||||
- name: Commit changes
|
||||
uses: stefanzweifel/git-auto-commit-action@v2.3.0
|
||||
with:
|
||||
commit_message: Fix styling
|
||||
branch: ${{ steps.extract_branch.outputs.branch }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
33
vendor/facade/ignition-contracts/.github/workflows/psalm.yml
vendored
Normal file
33
vendor/facade/ignition-contracts/.github/workflows/psalm.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
name: Psalm
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- '**.php'
|
||||
- 'psalm.xml'
|
||||
|
||||
jobs:
|
||||
psalm:
|
||||
name: psalm
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: '7.4'
|
||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
|
||||
coverage: none
|
||||
|
||||
- name: Cache composer dependencies
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: vendor
|
||||
key: composer-${{ hashFiles('composer.lock') }}
|
||||
|
||||
- name: Run composer require
|
||||
run: composer require -n --prefer-dist
|
||||
|
||||
- name: Run psalm
|
||||
run: ./vendor/bin/psalm -c psalm.xml
|
||||
43
vendor/facade/ignition-contracts/.github/workflows/run-tests.yml
vendored
Normal file
43
vendor/facade/ignition-contracts/.github/workflows/run-tests.yml
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
name: Run tests
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
|
||||
jobs:
|
||||
php-tests:
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
php: [ 8.0, 7.4, 7.3 ]
|
||||
dependency-version: [ prefer-lowest, prefer-stable ]
|
||||
os: [ ubuntu-latest, windows-latest ]
|
||||
allow_failures:
|
||||
- php: 8.0
|
||||
|
||||
name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: ${{ matrix.php }}
|
||||
coverage: none
|
||||
tools: composer:v2
|
||||
|
||||
- name: Install PHP 7 dependencies
|
||||
run: composer update --${{ matrix.dependency-version }} --no-interaction --no-progress
|
||||
if: "matrix.php < 8"
|
||||
|
||||
- name: Install PHP 8 dependencies
|
||||
run: composer update --prefer-stable --ignore-platform-req=php --no-interaction --no-progress
|
||||
if: "matrix.php >= 8"
|
||||
|
||||
- name: Execute tests
|
||||
run: vendor/bin/phpunit
|
||||
Reference in New Issue
Block a user