Add React frontend with authentication #365
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: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build_and_test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build containers | |
run: docker build -t igalia/phpreport -f docker/test.app.Dockerfile . | |
- name: Run the containers | |
run: docker-compose -f ./docker/docker-compose.test.yml up -d | |
- name: Wait | |
run: sleep 15s | |
- name: Run tests | |
run: docker exec -t phpreport-app ./vendor/bin/phpunit --testdox tests --verbose | |
- name: Run flake8 check | |
run: docker exec -t phpreport-app tox -c api/tox.ini -e flake8 | |
- name: Run black check | |
run: docker exec -t phpreport-app tox -c api/tox.ini -e black |