generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '1.x' into dependabot/composer/vimeo/psalm-5.23.1
- Loading branch information
Showing
5 changed files
with
25 additions
and
356 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,38 @@ | ||
name: "Continuous Integration" | ||
|
||
name: CI | ||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
tests: | ||
name: "🧪 Tests" | ||
|
||
ci: | ||
name: "CI" | ||
runs-on: ${{ matrix.operating-system }} | ||
|
||
strategy: | ||
matrix: | ||
dependencies: | ||
- "locked" | ||
php-version: | ||
- "8.0" | ||
- "8.1" | ||
- "8.2" | ||
operating-system: | ||
- "ubuntu-latest" | ||
- "windows-latest" | ||
- "macos-latest" | ||
|
||
operating-system: [ ubuntu-latest, windows-latest, macos-latest ] | ||
php-version: [ 8.0, 8.3 ] | ||
steps: | ||
|
||
# --------- Setup steps --------- | ||
- name: "Checkout" | ||
uses: "actions/checkout@v3" | ||
uses: actions/checkout@v3 | ||
|
||
- name: "Install PHP" | ||
uses: "shivammathur/setup-php@v2" | ||
- name: "Setup PHP" | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
coverage: "pcov" | ||
php-version: "${{ matrix.php-version }}" | ||
ini-values: memory_limit=-1 | ||
extensions: sodium, fileinfo | ||
extensions: pcov, xdebug, sodium, fileinfo | ||
|
||
- name: "Install dependencies" | ||
uses: "ramsey/composer-install@v2" | ||
with: | ||
dependency-versions: "${{ matrix.dependencies }}" | ||
uses: ramsey/composer-install@v2 | ||
|
||
- name: "Run tests" | ||
# --------- Run steps --------- | ||
- name: "Unit Tests" | ||
run: "composer test" | ||
|
||
code-quality: | ||
name: "🔬 Check code quality" | ||
needs: tests | ||
runs-on: "ubuntu-latest" | ||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v3" | ||
|
||
- name: "Install PHP" | ||
uses: "shivammathur/setup-php@v2" | ||
with: | ||
coverage: "pcov" | ||
php-version: "8.0" | ||
ini-values: memory_limit=-1 | ||
extensions: sodium, fileinfo | ||
|
||
- name: "Install dependencies" | ||
uses: "ramsey/composer-install@v2" | ||
with: | ||
dependency-versions: "locked" | ||
- name: "Coding Style" | ||
run: "composer cs-check" | ||
if: matrix.operating-system == 'ubuntu-latest' | ||
|
||
- name: "Psalm" | ||
- name: "Static code analysis" | ||
run: "composer psalm" | ||
|
||
- name: "Cs Fixer" | ||
run: "composer cs-check" | ||
if: matrix.operating-system == 'ubuntu-latest' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.