Skip to content

CI Tests

CI Tests #3

Workflow file for this run

name: CI Tests
on:
push:
workflow_dispatch:
jobs:
build-and-test-frontend:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build frontend Docker images
run: |
cd ./frontend/
docker-compose build
build-and-test-backend:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build backend Docker images
run: |
cd ./backend/dps_training_k/
docker-compose build
docker pull redis:latest
- name: Run backend tests
run: docker exec -it K-dPS-django python3 manage.py test
test-integration:
needs: [build-and-test-frontend, build-and-test-backend]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build frontend Docker images
run: |
cd ./frontend/
docker-compose build
- name: Build backend Docker images
run: |
cd ./backend/dps_training_k/
docker-compose build
docker pull redis:latest
- name: Run integration tests
run: |
cd ./frontend/
npm install cypress --save-dev
npx cypress run --e2e