From 2d2bb81b93c6cd705028f722470143b7c7aeb8aa Mon Sep 17 00:00:00 2001 From: Clement Date: Fri, 3 May 2024 19:55:28 +0200 Subject: [PATCH] add ci test --- .github/workflows/run_back_test.yml | 11 +++++++++++ Express/barAndCafe/src/app.ts | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/run_back_test.yml diff --git a/.github/workflows/run_back_test.yml b/.github/workflows/run_back_test.yml new file mode 100644 index 0000000..84c4212 --- /dev/null +++ b/.github/workflows/run_back_test.yml @@ -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 \ No newline at end of file diff --git a/Express/barAndCafe/src/app.ts b/Express/barAndCafe/src/app.ts index 943d8a9..40a531b 100644 --- a/Express/barAndCafe/src/app.ts +++ b/Express/barAndCafe/src/app.ts @@ -1,11 +1,12 @@ import express from "express"; - /** * Initialize Express application instance. * @returns An initialized Express application object. */ const app = express(); + + /** * Handle GET request for homepage route ('/'). * Send back a simple text response.