Skip to content

Commit 0a90d78

Browse files
committed
Moved more build steps to GitHub Actions
1 parent d707790 commit 0a90d78

2 files changed

Lines changed: 54 additions & 33 deletions

File tree

.github/workflows/build.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,57 @@ jobs:
101101

102102
- name: "Extension build"
103103
run: "./e2e/test-extension.sh 'https://github.com/phpstan/${{ matrix.extension-name }}.git'"
104+
105+
other-tests:
106+
name: "Other Tests"
107+
108+
runs-on: "ubuntu-latest"
109+
110+
strategy:
111+
matrix:
112+
php-version:
113+
- "7.4"
114+
script:
115+
- |
116+
cd e2e
117+
git clone https://github.com/nikic/PHP-Parser.git
118+
cd PHP-Parser
119+
git checkout v3.1.5
120+
composer install
121+
../../phpstan analyse -l 0 -c ../php-parser-baseline.neon lib
122+
- |
123+
cd e2e/phpstorm-stubs
124+
composer install
125+
../../phpstan analyse -l 8 test.php
126+
vendor/bin/phpunit ExampleTest.php
127+
- |
128+
cd e2e/react-promise
129+
composer install
130+
../../phpstan analyse -l 8 src
131+
- |
132+
cd e2e/hoa
133+
composer install
134+
../../phpstan analyse -l 8 src
135+
136+
steps:
137+
- name: "Checkout"
138+
uses: "actions/checkout@v2.0.0"
139+
140+
- name: "Install PHP"
141+
uses: "shivammathur/setup-php@1.8.2"
142+
with:
143+
coverage: "none"
144+
php-version: "${{ matrix.php-version }}"
145+
146+
- name: "Cache dependencies"
147+
uses: "actions/cache@v1.1.2"
148+
with:
149+
path: "~/.composer/cache"
150+
key: "php-${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}"
151+
restore-keys: "php-${{ matrix.php-version }}-composer-"
152+
153+
- name: "Install dependencies"
154+
run: "composer update --no-interaction --no-progress --no-suggest"
155+
156+
- name: "Tests"
157+
run: "${{ matrix.script }}"

.travis.yml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -13,39 +13,6 @@ env:
1313

1414
jobs:
1515
include:
16-
- stage: Other Tests
17-
name: Run on PHP-Parser v3
18-
script:
19-
- cd e2e
20-
- git clone https://github.com/nikic/PHP-Parser.git
21-
- cd PHP-Parser
22-
- git checkout v3.1.5
23-
- composer install
24-
- ../../phpstan analyse -l 0 -c ../php-parser-baseline.neon lib
25-
26-
- stage: Other Tests
27-
name: Run project depending on PhpStorm stubs
28-
script:
29-
- composer install
30-
- cd e2e/phpstorm-stubs
31-
- composer install
32-
- ../../phpstan analyse -l 8 test.php
33-
- vendor/bin/phpunit ExampleTest.php
34-
35-
- stage: Other Tests
36-
name: Run project depending on react/promise
37-
script:
38-
- cd e2e/react-promise
39-
- composer install
40-
- ../../phpstan analyse -l 8 src
41-
42-
- stage: Other Tests
43-
name: Run project using Hoa with static reflection
44-
script:
45-
- cd e2e/hoa
46-
- composer install
47-
- ../../phpstan analyse -l 8 src
48-
4916
- stage: Draft The Release
5017
script: skip
5118
deploy:

0 commit comments

Comments
 (0)