Skip to content

Commit 5ca1d91

Browse files
committed
refactor: backend pipeline
1 parent 691eba7 commit 5ca1d91

2 files changed

Lines changed: 26 additions & 3 deletions

File tree

.github/workflows/backend.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ on:
66
- "**"
77

88
jobs:
9-
test:
9+
persistence-unit-tests:
10+
name: Unit tests for persistence functions
1011
runs-on: ubuntu-latest
1112

1213
steps:

.github/workflows/frontend.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ on:
66
- "**"
77

88
jobs:
9-
build-and-test:
9+
test:
10+
name: Unit and snapshot tests
1011
runs-on: ubuntu-latest
1112

1213
steps:
@@ -28,5 +29,26 @@ jobs:
2829
- name: Run tests
2930
run: npm run test
3031

31-
- name: Build project (prod)
32+
build:
33+
name: Build the project like on production deployment
34+
needs: test
35+
runs-on: ubuntu-latest
36+
37+
steps:
38+
- name: Checkout the repository
39+
run: actions/checkout@v4
40+
41+
- name: Copy the config file for the vis
42+
run: cp config.example.js config.js
43+
44+
- name: Setup Node.JS
45+
uses: actions/setup-node@v4
46+
with:
47+
node-version: 18
48+
cache: "npm"
49+
50+
- name: Install all project dependencies
51+
run: npm ci
52+
53+
- name: Build the project (prod)
3254
run: npx webpack

0 commit comments

Comments
 (0)