fix: updated url in console tests #55
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: Build with Docker Compose | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - git_CI/CD | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| DJANGO_SECRET: ${{ secrets.DJANGO_SECRET }} | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build Docker Compose services | |
| run: docker compose -f docker/docker-compose.yml build --progress=plain | |
| - name: Run Django tests | |
| env: | |
| DJANGO_SECRET: ${{ secrets.DJANGO_SECRET }} | |
| GITHUB_CLIENT: ${{ secrets.GH_CLIENT }} | |
| GITHUB_SECRET: ${{ secrets.GH_SECRET }} | |
| run: | | |
| docker compose -f docker/docker-compose.yml run --rm \ | |
| --workdir /backend/src backend python manage.py test | |
| - name: Run Web tests | |
| run: docker compose -f docker/docker-compose.yml run --rm web npm run test | |
| - name: Run Console tests | |
| run: docker compose -f docker/docker-compose.yml run --rm console python test.py |