Skip to content

Commit

Permalink
fix dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerJang27 committed May 22, 2024
1 parent 58ecf72 commit 0115c7b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/actions/linter_tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ runs:
with:
node-version: 18

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.2"
extensions: mbstring, curl, xml, fpm

# NOTE: tzdata is a dependency of php, but without the DEBIAN_FRONTEND=noninteractive
# it will prompt for a timezone selection
- name: Install packages and specify defaults
Expand All @@ -52,14 +58,11 @@ runs:
sudo apt-get update
sudo apt-get -y install libperl-critic-perl perltidy zlib1g-dev software-properties-common
DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC sudo apt-get -y install tzdata
sudo add-apt-repository ppa:ondrej/php
sudo apt install -y php8.0-fpm php8.0-xml php8.0-mbstring php8.0-curl
;;
macOS)
brew install cpm
cpm install -g --no-test --color Perl::Critic Perl::Tidy
brew unlink perl && brew link perl
brew install php gnupg
;;
Windows)
echo "PLATFORM_APPEND_ARGS=--maxWorkers=5" >> "$GITHUB_ENV"
Expand Down
6 changes: 6 additions & 0 deletions .github/actions/tool_tests/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ runs:
with:
node-version: 18

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.2"
extensions: mbstring, curl, xml, fpm

- name: Specify defaults
run: |
echo "CLI_PATH=${{ inputs.cli-path }}" >> "$GITHUB_ENV"
Expand Down

0 comments on commit 0115c7b

Please sign in to comment.