refactor(ci): streamline test workflow by consolidating test commands and removing unnecessary comments
This commit is contained in:
@@ -19,9 +19,6 @@ jobs:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
# type=gha depends on act_runner's internal cache proxy, which is unreachable
|
||||
# from job containers on this runner (dial tcp ... i/o timeout). Use the
|
||||
# registry cache backend instead, same as docker-publish.yml.
|
||||
- name: Log in to Gitea registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
@@ -46,6 +43,7 @@ jobs:
|
||||
name: graph-dev-image
|
||||
path: /tmp/graph-dev.tar
|
||||
retention-days: 1
|
||||
|
||||
build-prod:
|
||||
needs: build-dev
|
||||
runs-on: ubuntu-latest
|
||||
@@ -80,8 +78,10 @@ jobs:
|
||||
- name: Load dev image
|
||||
run: docker load --input /tmp/graph-dev.tar
|
||||
|
||||
- name: Run PHPUnit
|
||||
run: docker run --rm -v "$(pwd)":/app -v /app/vendor graph-dev:ci vendor/bin/phpunit --testdox
|
||||
|
||||
- name: Run PHPStan
|
||||
run: docker run --rm -v "$(pwd)":/app -v /app/vendor graph-dev:ci composer phpstan
|
||||
- name: Run tests in dev image
|
||||
run: |
|
||||
docker run --rm -v "$(pwd)":/app -v /app/vendor graph-dev:ci sh -c "
|
||||
composer install --no-interaction &&
|
||||
vendor/bin/phpunit --testdox &&
|
||||
composer phpstan
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user