[CI/CD] Added build step.

This commit is contained in:
Fabio Manganiello 2025-02-28 01:38:40 +01:00
parent 0703c7ac40
commit 56f8557d15
Signed by: blacklight
GPG key ID: D90FBA7F76362774
4 changed files with 25 additions and 0 deletions

View file

@ -19,3 +19,12 @@ steps:
commands:
- . .drone/github-mirror.sh
###
### Run a smoke test of the application by trying a full build
###
- name: build
image: node:current-alpine3.20
commands:
- . .drone/build-all.sh

4
.drone/build-all.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
npm install typescript -g
make

6
Makefile Normal file
View file

@ -0,0 +1,6 @@
all:
npm install
npm run build
cd frontend
npm install
npm run build

View file

@ -14,6 +14,12 @@ GPSTracker is a simple Webapp that consists of:
## Building the application
```sh
make
```
Or, if you want to build the backend and the frontend separately:
```sh
# Backend
npm install