-
Notifications
You must be signed in to change notification settings - Fork 11
Feat worker stop #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Feat worker stop #21
Changes from 11 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
db4586d
Add worker stop event
abnegate a114b1c
Lint, format, namespace PSR fix
abnegate 94e9143
Migrate to github actions
abnegate 867dda4
Fix lint check
abnegate 4fb933b
Cache image
abnegate b7adfab
Fix image reference
abnegate 7fc9e95
Multi-version test
abnegate 6c5666e
Fix PHP 8.0 alpine verison
abnegate e41806d
Disable fail fast
abnegate c674390
Fix test host/port
abnegate 85acd95
Fix extension paths
abnegate 72a1bfe
Remove redundant build
abnegate 0041781
Remove redundant dependencies
abnegate 28c2d12
Cache image per version properly
abnegate e44b915
Fix job name
abnegate 2f1c11f
Fix multi-verison cache
abnegate f488f23
Fix ref name
abnegate 46ffa8c
Force workflow
abnegate 71ffdb4
Revert "Force workflow"
abnegate File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,49 @@ | ||
| name: "Tests" | ||
|
|
||
| on: [pull_request] | ||
| jobs: | ||
| tests: | ||
| name: Unit & E2E | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| php-versions: [ | ||
| '8.0', | ||
| '8.1', | ||
| '8.2', | ||
| '8.3' | ||
| ] | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| fetch-depth: 2 | ||
| submodules: recursive | ||
|
|
||
| - run: git checkout HEAD^2 | ||
|
|
||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v2 | ||
|
|
||
| - name: Build image | ||
| uses: docker/build-push-action@v3 | ||
| with: | ||
| context: . | ||
| file: php-${{ matrix.php-versions }}.Dockerfile | ||
| push: false | ||
| tags: websocket-dev | ||
| load: true | ||
| cache-from: type=gha | ||
| cache-to: type=gha,mode=max | ||
|
|
||
| - name: Build & Start Containers | ||
| run: | | ||
| export PHP_VERSION=${{ matrix.php-versions }} | ||
| docker compose build | ||
|
abnegate marked this conversation as resolved.
Outdated
|
||
| docker compose up -d | ||
| sleep 10 | ||
|
|
||
| - name: Run Tests | ||
| run: docker compose exec tests vendor/bin/phpunit | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.