.github/workflows/test.yml: turn off debugging and unit testing #120
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: | |
push: ~ | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
#- uses: mxschmitt/action-tmate@v3 | |
- name: composer | |
run: composer update | |
- name: integration tests | |
run: | | |
docker run -t --rm -v `pwd`:/mnt -w /mnt -e LC_ALL=C.utf8 -e LANG=C.utf8 --entrypoint /mnt/vendor/bin/phpunit acdhch/arche-ingest | |
RET=1 | |
docker run -t --rm -v `pwd`:/mnt --entrypoint /mnt/bin/arche-filechecker acdhch/arche-ingest /mnt/tests/data/ /mnt/tests/reports/ || RET=0 | |
exit $RET | |
# requires a specific environment to run (e.g. gdal-bin) so won't work on a vanila github actions worker | |
#- name: unit tests | |
# run: | | |
# mkdir -p build/logs | |
# 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 | |