-
Notifications
You must be signed in to change notification settings - Fork 9
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
Showing
18 changed files
with
295 additions
and
224 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
name: Compatability | ||
|
||
on: | ||
schedule: | ||
# Every Monday at 00:00:00 UTC. | ||
# @see https://crontab.cronhub.io/ | ||
- cron: "0 0 * * 1" | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
compatability: | ||
name: Compatability | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install rsync | ||
uses: GuillaumeFalourd/[email protected] # https://github.com/marketplace/actions/setup-rsync | ||
|
||
- name: Set up PHP | ||
uses: shivammathur/setup-php@v2 # https://github.com/marketplace/actions/setup-php-action | ||
with: | ||
php-version: '8.3' | ||
coverage: none | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v4 # https://github.com/marketplace/actions/checkout | ||
|
||
- name: Install dependencies | ||
uses: ramsey/composer-install@v3 # https://github.com/marketplace/actions/install-composer-dependencies | ||
|
||
- name: Run compatability tests | ||
run: composer compatability |
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 |
---|---|---|
|
@@ -74,8 +74,21 @@ jobs: | |
|
||
- name: "Debugging info" | ||
run: | | ||
rsync --version | head -1 | ||
echo "::group::PHP" | ||
which php | ||
php -i | ||
echo "::endgroup::" | ||
echo "::group::Composer" | ||
composer --version | ||
composer --format=json | jq '.' -C > composer-output.log | ||
head -5 composer-output.log | ||
echo "::endgroup::" | ||
echo "::group::rsync" | ||
which rsync | ||
rsync --version | ||
echo "::endgroup::" | ||
- name: "Checkout code" | ||
uses: actions/checkout@v4 # https://github.com/marketplace/actions/checkout | ||
|
@@ -85,6 +98,15 @@ jobs: | |
with: | ||
dependency-versions: "${{ matrix.dependencies }}est" | ||
|
||
- name: "Show installed versions" | ||
shell: bash | ||
env: | ||
NO_COLOR: "1" | ||
run: | | ||
output=$(composer show | awk '{print "- "$1" ("$2")"}') | ||
echo "$output" | ||
echo "Total packages: $(echo "$output" | wc -l | tr -d ' ')" | ||
- name: "Run core tests with coverage" | ||
run: "composer test" | ||
if: ${{ matrix.os == 'ubuntu' && matrix.dependencies == 'high' && matrix.php == '8.3' }} | ||
|
@@ -124,28 +146,6 @@ jobs: | |
- name: "Run performance tests" | ||
run: "composer phpbench -- --progress=plain --ansi" | ||
|
||
compatability: | ||
name: "Compatability" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Install rsync" | ||
uses: GuillaumeFalourd/[email protected] # https://github.com/marketplace/actions/setup-rsync | ||
|
||
- name: "Set up PHP" | ||
uses: shivammathur/setup-php@v2 # https://github.com/marketplace/actions/setup-php-action | ||
with: | ||
php-version: "8.3" | ||
coverage: none | ||
|
||
- name: "Checkout code" | ||
uses: actions/checkout@v4 # https://github.com/marketplace/actions/checkout | ||
|
||
- name: "Install dependencies" | ||
uses: ramsey/composer-install@v3 # https://github.com/marketplace/actions/install-composer-dependencies | ||
|
||
- name: "Run compatability tests" | ||
run: "composer compatability" | ||
|
||
mutation: | ||
name: "Mutation" | ||
runs-on: ubuntu-latest | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.