Skip to content

Commit 8f13743

Browse files
committed
Upgrade provider compat to use laravel 9/10 + railt 2.x
1 parent 413414f commit 8f13743

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1599
-6031
lines changed

.editorconfig

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@ trim_trailing_whitespace = true
1111
[*.md]
1212
trim_trailing_whitespace = false
1313

14-
[*.yml]
15-
indent_style = space
14+
[{*.yml, *.yaml}]
1615
indent_size = 2

.gitattributes

+10-17
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
1-
* text=auto
2-
*.pp linguist-language=EBNF
3-
*.pp2 linguist-language=EBNF
4-
*.gql linguist-language=GraphQL
5-
*.graphqls linguist-language=GraphQL
6-
*.graphql linguist-language=GraphQL
7-
*.phpt linguist-language=PHP
8-
1+
# GitHub Metadata
92
/.github export-ignore
10-
/tests export-ignore
11-
/.multirepo export-ignore
12-
multirepo.json export-ignore
13-
.editorconfig export-ignore
3+
4+
# Git Metadata
145
.gitattributes export-ignore
156
.gitignore export-ignore
16-
.travis.yml export-ignore
17-
.scrutinizer.yml export-ignore
18-
phpunit.xml export-ignore
19-
CONTRIBUTING.md export-ignore
20-
CODE_OF_CONDUCT.md export-ignore
7+
8+
# Tests
9+
/tests export-ignore
2110
phpunit.xml export-ignore
11+
.phpunit.result.cache export-ignore
12+
13+
# Helpers
14+
.editorconfig export-ignore

.github/workflows/codestyle.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: codestyle
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
psalm:
9+
name: Code Style
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
php: [ '8.2' ]
15+
os: [ ubuntu-latest ]
16+
steps:
17+
- name: Set Git To Use LF
18+
run: |
19+
git config --global core.autocrlf false
20+
git config --global core.eol lf
21+
- name: Checkout
22+
uses: actions/[email protected]
23+
- name: Setup PHP ${{ matrix.php }}
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: ${{ matrix.php }}
27+
- name: Validate Composer
28+
run: composer validate
29+
- name: Get Composer Cache Directory
30+
id: composer-cache
31+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
32+
- name: Restore Composer Cache
33+
uses: actions/cache@v1
34+
with:
35+
path: ${{ steps.composer-cache.outputs.dir }}
36+
key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
37+
restore-keys: ${{ runner.os }}-${{ matrix.php }}-composer-
38+
- name: Install Dependencies
39+
uses: nick-invision/retry@v1
40+
with:
41+
timeout_minutes: 5
42+
max_attempts: 5
43+
command: composer update --prefer-dist --no-interaction --no-progress
44+
- name: Check Code Style
45+
continue-on-error: true
46+
run: composer phpcs

.github/workflows/security.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: security
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '0 0 * * *'
8+
9+
jobs:
10+
security:
11+
name: Security
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
php: [ '8.2' ]
17+
os: [ ubuntu-latest ]
18+
steps:
19+
- name: Set Git To Use LF
20+
run: |
21+
git config --global core.autocrlf false
22+
git config --global core.eol lf
23+
- name: Checkout
24+
uses: actions/[email protected]
25+
- name: Setup PHP ${{ matrix.php }}
26+
uses: shivammathur/setup-php@v2
27+
with:
28+
php-version: ${{ matrix.php }}
29+
- name: Validate Composer
30+
run: composer validate
31+
- name: Get Composer Cache Directory
32+
id: composer-cache
33+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
34+
- name: Restore Composer Cache
35+
uses: actions/cache@v1
36+
with:
37+
path: ${{ steps.composer-cache.outputs.dir }}
38+
key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
39+
restore-keys: ${{ runner.os }}-${{ matrix.php }}-composer-
40+
- name: Install Dependencies
41+
uses: nick-invision/retry@v1
42+
with:
43+
timeout_minutes: 5
44+
max_attempts: 5
45+
command: composer update --prefer-dist --no-interaction --no-progress
46+
- name: Composer Audit
47+
run: composer audit
48+
- name: Security Advisories
49+
run: composer require --dev roave/security-advisories:dev-latest

.github/workflows/static-analysis.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: static-analysis
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
psalm:
9+
name: Psalm
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
php: [ '8.2' ]
15+
os: [ ubuntu-latest ]
16+
steps:
17+
- name: Set Git To Use LF
18+
run: |
19+
git config --global core.autocrlf false
20+
git config --global core.eol lf
21+
- name: Checkout
22+
uses: actions/[email protected]
23+
- name: Setup PHP ${{ matrix.php }}
24+
uses: shivammathur/setup-php@v2
25+
with:
26+
php-version: ${{ matrix.php }}
27+
- name: Validate Composer
28+
run: composer validate
29+
- name: Get Composer Cache Directory
30+
id: composer-cache
31+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
32+
- name: Restore Composer Cache
33+
uses: actions/cache@v1
34+
with:
35+
path: ${{ steps.composer-cache.outputs.dir }}
36+
key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
37+
restore-keys: ${{ runner.os }}-${{ matrix.php }}-composer-
38+
- name: Install Dependencies
39+
uses: nick-invision/retry@v1
40+
with:
41+
timeout_minutes: 5
42+
max_attempts: 5
43+
command: composer update --prefer-dist --no-interaction --no-progress
44+
- name: Static Analysis
45+
continue-on-error: true
46+
run: composer psalm:check

.github/workflows/tests.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '0 0 * * *'
8+
9+
jobs:
10+
unit:
11+
name: Unit Tests (${{matrix.php}}, ${{ matrix.os }}, ${{ matrix.stability }})
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
php: [ '8.1', '8.2' ]
17+
os: [ ubuntu-latest, macos-latest, windows-latest ]
18+
stability: [ prefer-lowest, prefer-stable ]
19+
steps:
20+
- name: Set Git To Use LF
21+
run: |
22+
git config --global core.autocrlf false
23+
git config --global core.eol lf
24+
- name: Checkout
25+
uses: actions/[email protected]
26+
- name: Setup PHP ${{ matrix.php }}
27+
uses: shivammathur/setup-php@v2
28+
with:
29+
php-version: ${{ matrix.php }}
30+
tools: pecl
31+
ini-values: "memory_limit=-1"
32+
- name: Validate Composer
33+
run: composer validate
34+
- name: Get Composer Cache Directory
35+
id: composer-cache
36+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
37+
- name: Restore Composer Cache
38+
uses: actions/cache@v1
39+
with:
40+
path: ${{ steps.composer-cache.outputs.dir }}
41+
key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
42+
restore-keys: ${{ runner.os }}-${{ matrix.php }}-composer-
43+
- name: Install Dependencies
44+
uses: nick-invision/retry@v1
45+
with:
46+
timeout_minutes: 5
47+
max_attempts: 5
48+
command: composer update --${{ matrix.stability }} --ignore-platform-reqs --prefer-dist --no-interaction --no-progress
49+
- name: Execute Unit Tests
50+
run: composer test:unit

.gitignore

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
.idea/
2-
vendor/
32
composer.phar
4-
.DS_Store
5-
Thumbs.db
6-
*.phpt.out
7-
*.phpt.exp
8-
*.phpt.diff
3+
composer.lock
4+
.phpunit.result.cache
5+
vendor/

.php-cs-fixer.php

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
$files = PhpCsFixer\Finder::create()
4+
->in(__DIR__ . '/libs/*/src')
5+
;
6+
7+
$rules = [
8+
'@PER' => true,
9+
'@PER:risky' => true,
10+
'strict_param' => true,
11+
'array_syntax' => ['syntax' => 'short'],
12+
];
13+
14+
return (new PhpCsFixer\Config())
15+
->setRules($rules)
16+
->setCacheFile(__DIR__ . '/vendor/.php-cs-fixer.cache')
17+
->setFinder($files)
18+
;

.scrutinizer.yml

-61
This file was deleted.

.travis.yml

-24
This file was deleted.

CODE_OF_CONDUCT.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
The Railt code of conduct is derived from the Ruby code of conduct.
1+
The Railt code of conduct is derived from the Ruby code of conduct.
22
Any violations of the code of conduct may be reported to Kirill Nesmeyanov ([email protected])
33

44
- Participants will be tolerant of opposing views.

CONTRIBUTING.md

-6
This file was deleted.

LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright © 2017-2019 Kirill Nesmeyanov
3+
Copyright © Kirill Nesmeyanov
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)