-
-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (38 loc) · 1.18 KB
/
php.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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