diff --git a/.github/actions/ci-prepare/action.yml b/.github/actions/ci-prepare/action.yml index 3314a8e3c4..e7888957e4 100644 --- a/.github/actions/ci-prepare/action.yml +++ b/.github/actions/ci-prepare/action.yml @@ -12,7 +12,7 @@ runs: - name: Setup Services shell: bash run: | - docker-compose -f ./.github/docker-compose.yml up -d ${{ inputs.env }} + docker compose -f ./.github/docker-compose.yml up -d ${{ inputs.env }} docker exec ${{ inputs.env }} php -v docker exec ${{ inputs.env }} php -m docker exec ${{ inputs.env }} php --ri swoole diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f05a1548f..a6d6f1ac38 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,9 +43,9 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Cache dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: /tmp/composer key: ${{ runner.os }}-composer-${{ matrix.swoole.version }}-${{ hashFiles('/composer.json') }} @@ -125,9 +125,9 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Cache dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: /tmp/composer key: ${{ runner.os }}-composer-${{ matrix.swoole.version }}-${{ hashFiles('/composer.json') }} @@ -196,12 +196,12 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Services shell: bash run: | sudo apt update && sudo apt install -y rsync - docker-compose -f ./.github/docker-compose.yml up -d mysql postgres redis rabbitmq kafka1 + docker compose -f ./.github/docker-compose.yml up -d mysql postgres redis rabbitmq kafka1 echo "127.0.0.1 kafka1" | sudo tee -a /etc/hosts - name: Setup swoole-cli run: .github/script/install-swoole-cli.sh ${{ matrix.swoole-cli }} @@ -216,7 +216,7 @@ jobs: id: composer-cache run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ matrix.swoole-cli }}-${{ hashFiles('/composer.json') }} @@ -298,7 +298,7 @@ jobs: ROADRUNNER_DOCKER_VERSION: ${{ matrix.roadrunner }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup MySQL uses: shogo82148/actions-setup-mysql@v1 with: @@ -339,7 +339,7 @@ jobs: id: composer-cache run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ env.php-versions }}-${{ hashFiles('/composer.json') }} @@ -423,7 +423,7 @@ jobs: ROADRUNNER_DOCKER_VERSION: ${{ matrix.roadrunner }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup MySQL uses: shogo82148/actions-setup-mysql@v1 diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 958754cfa5..b6c1753418 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -120,7 +120,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install libs run: sudo apt update && sudo apt install -y libevent-dev libcurl4-openssl-dev libc-ares-dev libpq-dev postgresql-client - name: Setup PHP @@ -142,7 +142,7 @@ jobs: id: composer-cache run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache vendor - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} @@ -178,7 +178,7 @@ jobs: needs: test steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 with: diff --git a/.github/workflows/daily-test.yml b/.github/workflows/daily-test.yml index ad15165447..7b38f57fd2 100644 --- a/.github/workflows/daily-test.yml +++ b/.github/workflows/daily-test.yml @@ -28,9 +28,9 @@ jobs: COMPOSER_ENV: --ignore-platform-reqs steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Cache dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: /tmp/composer key: ${{ runner.os }}-composer-${{ matrix.swoole.version }}-${{ hashFiles('/composer.json') }} diff --git a/.github/workflows/markdownlint.yml b/.github/workflows/markdownlint.yml index f120bca30c..a7505d07a8 100644 --- a/.github/workflows/markdownlint.yml +++ b/.github/workflows/markdownlint.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Prepare run: | diff --git a/.github/workflows/phpcs.yml b/.github/workflows/phpcs.yml index 3c8c85236c..a5d73923c2 100644 --- a/.github/workflows/phpcs.yml +++ b/.github/workflows/phpcs.yml @@ -20,11 +20,11 @@ jobs: ENV_SERVICE: swoole-only steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Prepare run: | - docker-compose -f ./.github/docker-compose.yml up -d ${ENV_SERVICE} + docker compose -f ./.github/docker-compose.yml up -d ${ENV_SERVICE} docker exec ${ENV_SERVICE} php -v docker exec ${ENV_SERVICE} composer -V docker exec ${ENV_SERVICE} composer update --no-interaction --prefer-dist --no-progress diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 4d0676facb..f2fc988a43 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -24,11 +24,11 @@ jobs: ENV_SERVICE: swoole-only steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Prepare run: | - docker-compose -f ./.github/docker-compose.yml up -d ${ENV_SERVICE} + docker compose -f ./.github/docker-compose.yml up -d ${ENV_SERVICE} docker exec ${ENV_SERVICE} php -v docker exec ${ENV_SERVICE} php -m docker exec ${ENV_SERVICE} php --ri swoole diff --git a/.github/workflows/rector.yml b/.github/workflows/rector.yml index 916f7dd071..c6f8b6c2e8 100644 --- a/.github/workflows/rector.yml +++ b/.github/workflows/rector.yml @@ -24,11 +24,11 @@ jobs: ENV_SERVICE: swoole-only steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Prepare run: | - docker-compose -f ./.github/docker-compose.yml up -d ${ENV_SERVICE} + docker compose -f ./.github/docker-compose.yml up -d ${ENV_SERVICE} docker exec ${ENV_SERVICE} php -v docker exec ${ENV_SERVICE} php -m docker exec ${ENV_SERVICE} php --ri swoole diff --git a/.github/workflows/split-repository.yml b/.github/workflows/split-repository.yml index 60bcd3de2f..8e1923c365 100644 --- a/.github/workflows/split-repository.yml +++ b/.github/workflows/split-repository.yml @@ -16,7 +16,7 @@ jobs: GITHUB_REPOSITORY: ${{ github.repository }} steps: - uses: ahmadnassri/action-workflow-queue@v1 - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0