add ci test
Some checks failed
Build Docker Image Front / run (push) Successful in 24s
Build Docker Image Back / run (push) Successful in 21s
Jest test unit / build (push) Failing after 17s
Build Docker Image Front / run (pull_request) Successful in 21s
Build Docker Image Back / run (pull_request) Successful in 21s

This commit is contained in:
Clement 2024-05-03 19:55:28 +02:00
parent 801ab51150
commit 2d2bb81b93
2 changed files with 13 additions and 1 deletions

11
.github/workflows/run_back_test.yml vendored Normal file
View File

@ -0,0 +1,11 @@
name: Jest test unit
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install modules
run: npm ci
- name: Run tests
run: npm run test

View File

@ -1,11 +1,12 @@
import express from "express"; import express from "express";
/** /**
* Initialize Express application instance. * Initialize Express application instance.
* @returns An initialized Express application object. * @returns An initialized Express application object.
*/ */
const app = express(); const app = express();
/** /**
* Handle GET request for homepage route ('/'). * Handle GET request for homepage route ('/').
* Send back a simple text response. * Send back a simple text response.