From 8d9761824710216c2e4df51c237c1da2127204ea Mon Sep 17 00:00:00 2001 From: jcallison1 <152124968+jcallison1@users.noreply.github.com> Date: Fri, 27 Sep 2024 12:39:50 -0500 Subject: [PATCH] Enable npm tests --- .github/workflows/run-tests.yml | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 8e05c1676..25ed73c48 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -18,16 +18,17 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - # - name: Build and push - # uses: docker/bake-action@v5 - # with: - # targets: backend - # push: false - # load: true + - name: Build backend + uses: docker/bake-action@v5 + with: + targets: backend + push: false + load: true - name: Start backend run: | - docker compose run -d --no-build backend + docker compose run -d --rm backend + sleep 5 # - name: Start backend # run: | @@ -36,12 +37,12 @@ jobs: # python setupEnv.py -s & # for attempt in {1..20}; do sleep 1; if curl 'http://localhost:5050/api'; then echo ready; break; fi; echo waiting...; done - # - name: Install Node dependencies - # run: | - # cd FrontEndReact - # npm install + - name: Install Node dependencies + run: | + cd FrontEndReact + npm install - # - name: Run Jest tests - # run: | - # cd FrontEndReact - # npm test + - name: Run Jest tests + run: | + cd FrontEndReact + npm test