Upgrade Dependencies to latest version #98
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: PHP Tests | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-go@v1 | |
- name: Install primitive | |
run: | | |
export PATH=${PATH}:`go env GOPATH`/bin | |
go get -u github.com/fogleman/primitive | |
# primitive -V | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Install Composer dependencies | |
run: | | |
composer install --dev --prefer-dist --no-progress --no-suggest --no-interaction | |
./bin/simple-phpunit install | |
- name: Install NodeJS dependencies | |
run: npm install | |
- name: Code Review | |
run: ./bin/rector process --config rector-ci.php --dry-run | |
- name: Run test suite | |
run: | | |
# for some reason, another path export is necessary | |
export PATH=${PATH}:`go env GOPATH`/bin | |
composer run test | |
# if: command -v primitive | |
- name: Debug Primitive installation | |
if: failure() | |
run: | | |
echo $PATH | |
ls | |
ls -R $( go env GOPATH ) | |
go get -u github.com/fogleman/primitive | |
export PATH=${PATH}:`go env GOPATH`/bin | |
composer run test |