diff --git a/.github/workflows/increment-build-number.yml b/.github/workflows/increment-build-number.yml index b8a3af41..4bad9d4b 100644 --- a/.github/workflows/increment-build-number.yml +++ b/.github/workflows/increment-build-number.yml @@ -18,6 +18,29 @@ jobs: - name: Checkout code uses: actions/checkout@v2 + - name: Setup PHP + uses: "shivammathur/setup-php@v2" + with: + php-version: '8.1' + extensions: swoole, posix, json + + - name: Setup problem matchers for PHP + run: echo "::add-matcher::${{ runner.tool_cache }}/php.json" + + - name: Get composer cache directory + id: composer-cache + run: echo "::set-output name=dir::$(composer config cache-files-dir)" + + - name: Cache dependencies + uses: actions/cache@v2 + with: + path: ${{ steps.composer-cache.outputs.dir }} + key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} + restore-keys: ${{ runner.os }}-composer- + + - name: Install Composer Dependencies + run: "composer install --prefer-dist --no-progress --optimize-autoloader" + - name: Generate API Docs run: bin/gendoc