[NDH-285] Establish frontend tooling and django connection #59
Workflow file for this run
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: Django Tests | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: backend/ | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Compose | |
| uses: docker/setup-compose-action@v1 | |
| - name: Create artifacts directory with proper permissions | |
| run: | | |
| mkdir -p ./artifacts/test-reports | |
| chmod 777 ./artifacts/test-reports | |
| - name: Build and run tests | |
| run: | | |
| make test | |
| - name: Upload test results as artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results | |
| path: backend/artifacts/test-reports/*.xml |