From 6a71782cfd916950a184f704a848268a71569854 Mon Sep 17 00:00:00 2001 From: Andreas Buhr Date: Wed, 10 Apr 2024 19:08:56 +0200 Subject: [PATCH] Fix Github Actions Install composer before using it. Signed-off-by: Andreas Buhr --- .github/workflows/hosted.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/hosted.yml b/.github/workflows/hosted.yml index 1511fbf80c..b277490b7e 100644 --- a/.github/workflows/hosted.yml +++ b/.github/workflows/hosted.yml @@ -196,6 +196,14 @@ jobs: repository: antlr/antlr-php-runtime path: runtime/PHP + - name: Setup PHP 8.2 + if: matrix.target == 'php' + uses: shivammathur/setup-php@2.22.0 + with: + php-version: '8.2' + extensions: mbstring + tools: composer + - name: Install dependencies env: COMPOSER_CACHE_DIR: ${{ github.workspace }}/.cache @@ -263,14 +271,6 @@ jobs: with: go-version: '^1.19' - - name: Setup PHP 8.2 - if: matrix.target == 'php' - uses: shivammathur/setup-php@2.22.0 - with: - php-version: '8.2' - extensions: mbstring - tools: composer - - name: Setup Swift if: matrix.target == 'swift' uses: swift-actions/setup-swift@v1.19.0