Add test workflow #36
Workflow file for this run
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: Test workflow | |
on: | |
pull_request: | |
# push: | |
schedule: | |
- cron: 0 0 * * 5 | |
jobs: | |
plugin-test-linux: | |
runs-on: ubuntu-latest | |
container: ubuntu:latest | |
steps: | |
- name: Install vfox | |
run: | | |
apt-get update | |
apt-get install -y ca-certificates | |
echo "deb [trusted=yes] https://apt.fury.io/versionfox/ /" | tee /etc/apt/sources.list.d/versionfox.list | |
apt-get update | |
apt-get install vfox | |
- name: View vfox version | |
run: | | |
vfox -v | |
vfox available | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Add PHP plugin | |
run: | | |
mkdir ~/.version-fox/plugin/php | |
cp -r ./* ~/.version-fox/plugin/php | |
# - name: Search PHP version | |
# run: vfox search php & | |
# - name: Install packages | |
# run: apt-get install -y curl autoconf build-essential locate libgd-dev libjpeg-dev libpng-dev libonig-dev libzip-dev libxml2-dev libssl-dev libsqlite3-dev libcurl4-openssl-dev libreadline-dev | |
# - name: Install PHP | |
# run: | | |
# vfox i php | |
# export __VFOX_SHELL="$$" | |
# vfox use php@$(vfox list php | sed -n 's/-> v//p') | |
# eval "$(vfox env -s zsh)" | |
# php -v | |
# php -m | |
# composer -V | |
- name: Test | |
run: | | |
mkdir -p ~/.version-fox/cache/php/v-8.3.3/php-8.3.3/bin | |
export __VFOX_SHELL="$$" | |
vfox use php@$(vfox list php | sed -n 's/-> v//p') | |
echo "PATH: $PATH" | |
echo '--------------------' | |
vfox env -s zsh | |
echo '--------------------' | |
eval "$(vfox env -s zsh)" | |
echo "PATH: $PATH" |