Merge pull request #1787 from hashtopolis/dba-join-alias #826
This file contains hidden or 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: Hashtopolis | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - dev | |
| pull_request: | |
| branches: | |
| - master | |
| - dev | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Start Hashtopolis server | |
| uses: ./.github/actions/start-hashtopolis | |
| - name: Give Apache permissions on necessary directories # for the tests, only src/files and src/inc/utils/locks seem necessary | |
| run: docker exec -u root hashtopolis-server-dev bash -c "chown -R www-data:www-data /var/www/html/src && chmod -R g+w /var/www/html/src" | |
| - name: Run test suite | |
| run: docker exec hashtopolis-server-dev php /var/www/html/ci/run.php -vmaster | |
| - name: Test with pytest | |
| run: docker exec hashtopolis-server-dev pytest /var/www/html/ci/apiv2 | |
| - name: Test if pytest is removing all test objects | |
| run: docker exec hashtopolis-server-dev python3 /var/www/html/ci/apiv2/htcli.py run delete-test-data | |
| - name: Show docker log files | |
| if: ${{ always() }} | |
| run: docker logs hashtopolis-server-dev | |
| - name: Show installed files tree in /var/www/html | |
| if: ${{ always() }} | |
| run: docker exec hashtopolis-server-dev find /var/www/html |