-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from utopia-php/feat-worker-stop
Feat worker stop
- Loading branch information
Showing
18 changed files
with
1,246 additions
and
2,788 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,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-${{ matrix.php-versions }}-dev | ||
load: true | ||
outputs: type=cacheonly | ||
cache-from: type=gha,scope=${{ matrix.php-versions }} | ||
cache-to: type=gha,mode=max,scope=${{ matrix.php-versions }} | ||
|
||
- name: Start Containers | ||
run: | | ||
export PHP_VERSION=${{ matrix.php-versions }} | ||
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 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.