更新 #2950
Workflow file for this run
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
name: Coding Standards | |
on: | |
push: | |
paths-ignore: | |
- "doc/**" | |
- "mddoc/**" | |
- "res/**" | |
- "website/**" | |
- ".markdownlint.json" | |
- "README.md" | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
tests: | |
runs-on: ubuntu-20.04 | |
env: | |
SWOOLE_DOCKER_VERSION: 5.0-php8.1 | |
POSTGRESQL_VERSION: "" | |
ENV_SERVICE: swoole-only | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Prepare | |
run: | | |
echo "::group::Env prepare" | |
docker-compose -f ./.github/docker-compose.yml up -d ${ENV_SERVICE} | |
echo "::endgroup::" | |
echo "::group::Env info" | |
docker exec ${ENV_SERVICE} php -v | |
docker exec ${ENV_SERVICE} composer -V | |
echo "::endgroup::" | |
echo "::group::Composer install" | |
docker exec ${ENV_SERVICE} composer update --no-interaction --prefer-dist --no-progress | |
docker exec ${ENV_SERVICE} bash -c "cd split-repository && composer install --no-interaction --prefer-dist --no-progress" | |
echo "::endgroup::" | |
- name: Coding Standards Tests | |
run: docker exec ${ENV_SERVICE} ./vendor/bin/php-cs-fixer fix --dry-run --diff -vvv |