1.0.0 #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
workflow_dispatch: ~ | |
push: ~ | |
release: | |
types: [published] | |
jobs: | |
phpunit: | |
strategy: | |
matrix: | |
php: [8.1, 8.2, 8.3, 8.4] | |
imageTag: ['latest'] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: json,mbstring,pcre,yaml | |
coverage: xdebug | |
env: | |
fail-fast: true | |
- name: composer update | |
run: | | |
composer update | |
- name: phpstan | |
run: | | |
vendor/bin/phpstan analyze -l 6 src tests bin/* | |
- name: clone repo config | |
run: | | |
git clone --depth 1 --branch arche https://github.com/acdh-oeaw/arche-docker-config.git config | |
chmod -x config/run.d/* config/initScripts/30-dissServices.php | |
chmod +x config/run.d/98-xdebug.sh config/run.d/10-postgresql.sh config/run.d/15-config-yaml.sh | |
cp .github/workflows/99-postgresqlConfig.sh config/run.d/ | |
cp .github/workflows/30-fixVocabularies.sh config/initScripts/ | |
- name: run repo docker | |
run: | | |
mkdir log | |
docker run --name arche -p 80:80 -p 5432:5432 -v `pwd`/log:/home/www-data/log -v `pwd`/config:/home/www-data/config -e USER_UID=`id -u` -e USER_GID=`id -g` -e ADMIN_PSWD=admin -d acdhch/arche | |
- name: phpunit | |
run: | | |
XDEBUG_MODE=coverage vendor/bin/phpunit | |
- name: coveralls | |
run: | | |
export COVERALLS_RUN_LOCALLY=1 | |
export COVERALLS_REPO_TOKEN=${{ secrets.coverallsToken }} | |
rm -fR composer.json composer.lock vendor | |
composer require php-coveralls/php-coveralls | |
php vendor/bin/php-coveralls -v | |