Validate timezone data from client side before setting the cookie #464
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 Suite" | |
on: | |
workflow_call: | |
push: | |
branches: | |
- master | |
- develop | |
pull_request: | |
branches: | |
- master | |
- develop | |
jobs: | |
suite: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: "Configure env" | |
run: | | |
cp .env.test .env | |
sed -i "/^DOCKER_TAG=/c\DOCKER_TAG=${{ github.base_ref || github.ref_name }}" .env | |
cp docker-compose.override.test.yml docker-compose.override.yml | |
- name: "Start services" | |
run: | | |
docker compose build --pull | |
docker compose up -d | |
docker compose exec -T app wait_for_services.sh | |
- name: "Top" | |
run: | | |
docker compose logs | |
docker compose top | |
- name: "Install dev dependencies" | |
run: | | |
docker compose exec -T app pip install -c requirements/constraints.txt -r requirements/dev.txt | |
cd frontend | |
npm install | |
- name: "Backend tests" | |
id: "backendTests" | |
run: | | |
docker compose exec -T app pytest --cov | |
- name: "Frontend tests" | |
run: | | |
cd frontend | |
npm run test:unit -- run | |
- name: "Seed DB" | |
run: | | |
docker compose exec -T app ./manage.py seed_db --noinput | |
- name: "E2E tests" | |
id: "frontendTests" | |
run: | | |
cd frontend | |
# Don't record videos since we don't upload them | |
npm run test -- -c 'video=false' | |
- uses: actions/upload-artifact@v4 | |
if: ${{ failure() && steps.frontendTests.conclusion == 'failure' }} | |
with: | |
name: cypress-screenshots | |
path: frontend/cypress/screenshots/ |