Skip to content

Commit

Permalink
Add GitHub Actions for unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
martialblog committed Aug 1, 2024
1 parent 6d30709 commit fed052c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
pull_request:
branches:
- main
- release/*

jobs:
lint:
Expand Down Expand Up @@ -40,3 +41,17 @@ jobs:
- name: PHP CodeSniffer
if: success() || matrix.allow_failure
run: phpcs -wps --colors

- name: Setup Libraries
run: |
mkdir -p _libraries
git clone --depth 1 -b snapshot/nightly https://github.com/Icinga/icinga-php-library.git _libraries/ipl
git clone --depth 1 -b snapshot/nightly https://github.com/Icinga/icinga-php-thirdparty.git _libraries/vendor
git clone --depth 1 https://github.com/Icinga/icingaweb2.git _icingaweb2
git clone --depth 1 https://github.com/Icinga/icingadb-web.git _icingaweb2/modules/icingadb
ln -s `pwd` _icingaweb2/modules/toplevelview
- name: PHPUnit
env:
ICINGAWEB_LIBDIR: _libraries/
run: phpunit --verbose

0 comments on commit fed052c

Please sign in to comment.