File tree 1 file changed +35
-10
lines changed
1 file changed +35
-10
lines changed Original file line number Diff line number Diff line change 6
6
- main
7
7
pull_request :
8
8
jobs :
9
- build-test :
9
+ build :
10
10
runs-on : ubuntu-latest
11
+
12
+ strategy :
13
+ matrix :
14
+ php : [7.0, 5.6]
15
+ db : [sqlite, mysql, postgres]
16
+
17
+ env :
18
+ PLUGIN : Wiki
19
+ KANBOARD_REPO : https://github.com/kanboard/kanboard.git
20
+
11
21
steps :
12
- - name : Run .travis.yml build script
13
- uses : ktomk/run-travis-yml@v1
22
+ - name : Check out code
23
+ uses : actions/checkout@v2
24
+
25
+ - name : Set up PHP
26
+ uses : shivammathur/setup-php@v2
14
27
with :
15
- file : .travis.yml
16
- steps : |
17
- install
18
- script
19
- allow-failure : false
20
- env :
21
- TRAVIS_PHP_VERSION : ${{ matrix.php-versions }}
28
+ php-version : ${{ matrix.php }}
29
+
30
+ - name : Install Composer dependencies
31
+ run : composer install
32
+
33
+ - name : Clone Kanboard repository
34
+ run : git clone --depth 1 $KANBOARD_REPO
35
+
36
+ - name : Create symbolic link
37
+ run : ln -s ${{ github.workspace }} kanboard/plugins/$PLUGIN
38
+
39
+ - name : Configure PHP environment
40
+ run : phpenv config-add tests/php.ini
41
+
42
+ - name : List plugin directory
43
+ run : ls -la plugins/
44
+
45
+ - name : Run PHPUnit tests
46
+ run : phpunit -c tests/units.${{ matrix.db }}.xml plugins/$PLUGIN/Test/
You can’t perform that action at this time.
0 commit comments