Transaction::checkHasNextItem(): handle corner cases #229
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: phpunit | |
on: push | |
jobs: | |
phpunit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- 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/test-postgresql_config.sh config/run.d/99-postgresql.sh | |
cp .github/workflows/*-testSetup.sh config/initScripts/ | |
cp config-sample.yaml config/yaml/doorkeeper.yaml | |
sed -e 's/pswd:/pswd: foobar/g' config/yaml/local.yaml.sample > config/yaml/local.yaml | |
- name: run repo docker | |
run: | | |
mkdir -p build/logs log | |
docker run --name arche -p 80:80 -p 5432:5432 -v `pwd`/build:/home/www-data/docroot/api/build -v `pwd`/log:/home/www-data/log -v `pwd`/config:/home/www-data/config -v `pwd`:/home/www-data/arche-doorkeeper -e USER_UID=`id -u` -e USER_GID=`id -g` -d acdhch/arche | |
- name: composer update | |
run: | | |
composer update | |
- name: wait | |
run: | | |
while [ "`grep '# INIT SCRIPTS ENDED' log/initScripts.log | wc -l`" != "1" ]; do | |
tail log/initScripts.log || true | |
echo "Waiting until repository is ready..." | |
echo "-----" | |
sleep 10 | |
done | |
cat log/initScripts.log | |
#- uses: mxschmitt/action-tmate@v3 | |
- name: test | |
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 | |
- name: debug | |
if: ${{ failure() }} | |
run: | | |
cat log/rest.log |