Skip to content

Commit

Permalink
Fix Github Actions
Browse files Browse the repository at this point in the history
Install composer before using it.

Signed-off-by: Andreas Buhr <andreas@andreasbuhr.de>
  • Loading branch information
andreasbuhr authored and ericvergnaud committed Apr 10, 2024
1 parent 281b762 commit 6a71782
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/hosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6a71782

Please sign in to comment.