Skip to content

refactoring: GitHub workflows clean up #782

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Backend CI

on:
push:
branches:
- "**"

jobs:
persistence-unit-tests:
name: Unit tests for persistence functions
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Cache pip dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-

- name: Give execution permissions to script
run: chmod +x tests_runners/persistence/locally.sh

- name: Run tests
run: tests_runners/persistence/locally.sh
127 changes: 0 additions & 127 deletions .github/workflows/build-and-lint-backend.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/build-and-lint-frontend.yml

This file was deleted.

90 changes: 0 additions & 90 deletions .github/workflows/docker-publish.yml

This file was deleted.

54 changes: 54 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Frontend CI

on:
push:
branches:
- "**"

jobs:
test:
name: Unit and snapshot tests
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Copy config file
run: cp config.example.js config.js

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm run test

build:
name: Build the project like on production deployment
needs: test
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Copy the config file for the vis
run: cp config.example.js config.js

- name: Setup Node.JS
uses: actions/setup-node@v4
with:
node-version: 18
cache: "npm"

- name: Install all project dependencies
run: npm ci

- name: Build the project (prod)
run: npx webpack
Loading