Update job_testscript.yml #57
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |