-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add tests to demo FOR FUN (#14)
This PR uncovers the issue in demo.
- Loading branch information
Showing
8 changed files
with
2,222 additions
and
171 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,39 @@ | ||
name: CI | ||
|
||
on: | ||
push: ~ | ||
pull_request: ~ | ||
workflow_dispatch: ~ | ||
|
||
jobs: | ||
demo: | ||
runs-on: ubuntu-latest | ||
name: CI Demo - PHP ${{ matrix.php }} | ||
strategy: | ||
matrix: | ||
php: [8.2, 8.3] | ||
|
||
steps: | ||
- # Copies the repository files to the Action Runner | ||
name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- # Installs PHP and other necessary tools | ||
name: Setup PHP | ||
uses: shivammathur/[email protected] | ||
with: | ||
php-version: ${{ matrix.php }} | ||
|
||
- # Installs and caches PHP dependencies | ||
name: Install Dependencies | ||
uses: ramsey/[email protected] | ||
with: | ||
working-directory: example | ||
|
||
- # Validates composer.json structure and required fields | ||
name: Validate composer.json | ||
run: cd example && composer validate --ansi --strict --no-check-publish | ||
|
||
- # Runs unit and integration tests, like phpspec, phpunit etc. | ||
name: Run Tests | ||
run: cd example && composer test |
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.