Skip to content

AronBuzogany is running tests πŸš€ #66

AronBuzogany is running tests πŸš€

AronBuzogany is running tests πŸš€ #66

Workflow file for this run

name: UGent-3
run-name: ${{ github.actor }} is running tests πŸš€
on: [push, pull_request]
jobs:
Frontend-tests:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- name: Install dependencies
working-directory: ./frontend
run: npm ci
- name: Build
working-directory: ./frontend
run: npm run build
- name: Preview Web App
working-directory: ./frontend
run: npm run preview &
- name: Running tests
working-directory: ./frontend
run: npm test
- name: Run linting
working-directory: ./frontend
run: npm run lint
Backend-tests:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
cache: 'pip'
- name: Install dependencies
working-directory: ./backend
run: pip3 install -r requirements.txt && pip3 install -r dev-requirements.txt
- name: Install Docker Compose
run: |
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
- name: Running tests
working-directory: ./backend
run: bash ./run_tests.sh
- name: Run linting
working-directory: ./backend
run: pylint ./*/*.py