Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ jobs:
name: CLI
strategy:
matrix:
os: [ 'ubuntu-latest', 'windows-latest', 'macos-13' ]
os: [ 'ubuntu-latest', 'windows-latest', 'macos-latest' ]
runs-on: ${{ matrix.os }}
steps:
- name: Set git to use LF

run: |
git config --global core.autocrlf input
git config --global core.eol lf
Expand All @@ -31,6 +32,32 @@ jobs:
npm install --global bower
bower -v

- name: Install PHP & Composer (macOS)
if: runner.os == 'macOS'
shell: bash
run: |
set -e
echo "Installing PHP and Composer on macOS"

# Use the system PHP if available, otherwise install via Homebrew
if ! command -v php >/dev/null 2>&1; then
brew update
brew install php
fi
php -v

EXPECTED_SIGNATURE="$(curl -s https://composer.github.io/installer.sig)"
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
ACTUAL_SIGNATURE="$(php -r "echo hash_file('sha384', 'composer-setup.php');")"
if [ "$EXPECTED_SIGNATURE" != "$ACTUAL_SIGNATURE" ]; then
>&2 echo 'ERROR: Invalid composer installer signature'
rm composer-setup.php
exit 1
fi
php composer-setup.php --install-dir=/usr/local/bin --filename=composer
rm composer-setup.php
composer --version

- name: Pull Supported Formats
run: |
cd cmd/debricked
Expand Down
Loading