Update CHANGELOG.md and README.md for v1.2.0 release: add CI/CD integ… #50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Use | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
use: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Install Homebrew | |
run: | | |
sudo apt update | |
sudo apt install -y build-essential curl file git | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> ~/.bashrc | |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" | |
- name: Install PHP using PHPVM | |
run: | | |
chmod +x phpvm.sh | |
./phpvm.sh install 8.3 | |
- name: Switch PHP Version | |
run: | | |
./phpvm.sh use 8.3 | |
- name: List Installed PHP Versions | |
run: | | |
./phpvm.sh list | |
- name: Verify PHP Version | |
run: | | |
php -v |