File tree Expand file tree Collapse file tree 3 files changed +46
-12
lines changed Expand file tree Collapse file tree 3 files changed +46
-12
lines changed Original file line number Diff line number Diff line change 36
36
run : " composer install --no-interaction"
37
37
working-directory : " generator"
38
38
39
- - name : " Install dependencies with composer in root directory"
40
- run : " composer install --no-interaction"
41
-
42
-
43
- - name : " Dump autoloader with composer in root directory"
44
- run : " composer dump-autoload"
45
-
46
-
47
39
- name : " Regenerate files"
48
40
run : " ./safe.php generate"
49
41
working-directory : " generator"
Original file line number Diff line number Diff line change 99
99
exit 1;
100
100
fi
101
101
102
- - name : " Check if refactoring can be done with rector/rector:~0.7.0"
103
- run : " composer install && composer rector && composer test"
104
- working-directory : " generator/tests/rector/0.7"
105
-
106
102
- name : " Archive code coverage results"
107
103
uses : " actions/upload-artifact@v1"
108
104
with :
Original file line number Diff line number Diff line change
1
+ # https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2
+
3
+ name : " Rector Continuous Integration"
4
+
5
+ on :
6
+ - " pull_request"
7
+ - " push"
8
+
9
+ jobs :
10
+
11
+ rector-continuous-integration :
12
+ name : " Check if refactoring can be done with rector/rector:~0.7.0"
13
+
14
+ runs-on : " ubuntu-latest"
15
+
16
+ strategy :
17
+ matrix :
18
+ php-version :
19
+ - " 7.2"
20
+ - " 7.3"
21
+ - " 7.4"
22
+
23
+ dependencies :
24
+ - " highest"
25
+
26
+ steps :
27
+ - name : " Checkout"
28
+ uses : " actions/checkout@v2"
29
+
30
+ - name : " Install PHP with extensions"
31
+ uses : " shivammathur/setup-php@v2"
32
+ with :
33
+ php-version : " ${{ matrix.php-version }}"
34
+
35
+ - name : " Composer install"
36
+ run : " composer install && composer rector && composer test"
37
+ working-directory : " generator/tests/rector/0.7"
38
+
39
+ - name : " Run rector"
40
+ run : " composer rector"
41
+ working-directory : " generator/tests/rector/0.7"
42
+
43
+ - name : " Run tests"
44
+ run : " composer test"
45
+ working-directory : " generator/tests/rector/0.7"
46
+
You can’t perform that action at this time.
0 commit comments