-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f54af2a
commit f6e3ef8
Showing
3 changed files
with
91 additions
and
107 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
name: Check & fix styling | ||
|
||
on: [push] | ||
|
||
jobs: | ||
|
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,83 +1,73 @@ | ||
name: run-tests | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
- push | ||
- pull_request | ||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
php: [7.4, 8.1, 8.2, 8.3] | ||
laravel: ["7.*", 8.*', "9.*", "10.*", "11.*"] | ||
stability: [prefer-stable] | ||
include: | ||
- laravel: 10.* | ||
testbench: 8.* | ||
- laravel: 9.* | ||
testbench: 7.* | ||
- laravel: 8.* | ||
testbench: ^6.* | ||
- laravel: 7.* | ||
testbench: ^5.* | ||
- laravel: 11.* | ||
testbench: 9.* | ||
exclude: | ||
- laravel: 11.* | ||
php: 8.1 | ||
- laravel: 11.* | ||
php: 8.2 | ||
- laravel: 11.* | ||
php: 8.3 | ||
|
||
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} | ||
|
||
services: | ||
mysql: | ||
image: mysql:8.0 | ||
env: | ||
MYSQL_USER: user | ||
MYSQL_PASSWORD: secret | ||
MYSQL_DATABASE: laravel_health | ||
MYSQL_ROOT_PASSWORD: secretroot | ||
ports: | ||
- 3306 | ||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | ||
redis: | ||
image: redis | ||
ports: | ||
- 6379:6379 | ||
options: --health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo | ||
coverage: none | ||
|
||
- name: Setup problem matchers | ||
run: | | ||
echo "::add-matcher::${{ runner.tool_cache }}/php.json" | ||
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | ||
- name: Install dependencies | ||
run: | | ||
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update | ||
composer update --${{ matrix.stability }} --prefer-dist --no-interaction | ||
- name: Execute tests | ||
run: vendor/bin/pest | ||
env: | ||
DB_USERNAME: user | ||
DB_PASSWORD: secret | ||
DB_PORT: ${{ job.services.mysql.ports[3306] }} | ||
REDIS_PORT: 6379 | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
php: [7.4, 8.1, 8.2, 8.3] | ||
laravel: ["7.*", 8.*', "9.*", "10.*", "11.*"] | ||
stability: [prefer-stable] | ||
include: | ||
- laravel: 10.* | ||
testbench: 8.* | ||
- laravel: 9.* | ||
testbench: 7.* | ||
- laravel: 8.* | ||
testbench: ^6.* | ||
- laravel: 7.* | ||
testbench: ^5.* | ||
- laravel: 11.* | ||
testbench: 9.* | ||
exclude: | ||
- laravel: 11.* | ||
php: 8.1 | ||
- laravel: 11.* | ||
php: 8.2 | ||
- laravel: 11.* | ||
php: 8.3 | ||
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} | ||
services: | ||
mysql: | ||
image: mysql:8.0 | ||
env: | ||
MYSQL_USER: user | ||
MYSQL_PASSWORD: secret | ||
MYSQL_DATABASE: laravel_health | ||
MYSQL_ROOT_PASSWORD: secretroot | ||
ports: | ||
- 3306 | ||
options: '--health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3' | ||
redis: | ||
image: redis | ||
ports: | ||
- '6379:6379' | ||
options: '--health-cmd "redis-cli ping" --health-interval 10s --health-timeout 5s --health-retries 5' | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo | ||
coverage: none | ||
- name: Setup problem matchers | ||
run: | | ||
echo "::add-matcher::${{ runner.tool_cache }}/php.json" | ||
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | ||
- name: Install dependencies | ||
run: | | ||
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update | ||
composer update --${{ matrix.stability }} --prefer-dist --no-interaction | ||
- name: Execute tests | ||
run: vendor/bin/pest | ||
env: | ||
DB_USERNAME: user | ||
DB_PASSWORD: secret | ||
DB_PORT: ${{ job.services.mysql.ports[3306] }} | ||
REDIS_PORT: 6379 |
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,28 +1,23 @@ | ||
name: "Update Changelog" | ||
|
||
name: Update Changelog | ||
on: | ||
release: | ||
types: [released] | ||
|
||
release: | ||
types: [released] | ||
jobs: | ||
update: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: main | ||
|
||
- name: Update Changelog | ||
uses: stefanzweifel/changelog-updater-action@v1 | ||
with: | ||
latest-version: ${{ github.event.release.name }} | ||
release-notes: ${{ github.event.release.body }} | ||
|
||
- name: Commit updated CHANGELOG | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
branch: main | ||
commit_message: Update CHANGELOG | ||
file_pattern: CHANGELOG.md | ||
update: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: main | ||
- name: Update Changelog | ||
uses: stefanzweifel/changelog-updater-action@v1 | ||
with: | ||
latest-version: ${{ github.event.release.name }} | ||
release-notes: ${{ github.event.release.body }} | ||
- name: Commit updated CHANGELOG | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
branch: main | ||
commit_message: Update CHANGELOG | ||
file_pattern: CHANGELOG.md |