Skip to content

Update job_testscript.yml #57

Update job_testscript.yml

Update job_testscript.yml #57

name: Run Tests
on:
push:
branches:
- main
- development
- qa
- feat/profiles
jobs:
test:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: npm install
- name: Install dependencies in frontend
run: npm install
working-directory: ./frontend
- name: Install dependencies in backend
run: npm install
working-directory: ./backend
- name: Run tests and capture output
run: npm test 2>&1 | tee test_results.txt | tr -d '\r'
- name: Upload test results
uses: actions/upload-artifact@v2
with:
name: test_results
path: test_results.txt
if: always() # Upload even on failure