Skip to content

Commit fa47f91

Browse files
committed
another attempt
1 parent 0ad27d2 commit fa47f91

File tree

1 file changed

+35
-10
lines changed

1 file changed

+35
-10
lines changed

.github/workflows/tests.yaml

+35-10
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,41 @@ on:
66
- main
77
pull_request:
88
jobs:
9-
build-test:
9+
build:
1010
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+
1121
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
1427
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/

0 commit comments

Comments
 (0)