Updated request windows #681
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: React Front-End Unit Testing | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "18.15.0" | |
# Install required deps for action | |
- name: Install Frontend Dependencies | |
run: npm install | |
working-directory: frontend/infosafe_frontend | |
# Finally, run our tests | |
- name: Execute Unit Tests | |
run: npm run test | |
working-directory: frontend/infosafe_frontend | |
# Codecov report | |
- name: Upload coverage to Codecov | |
uses: codecov/[email protected] | |
with: | |
path: frontend/infosafe_frontend/coverage | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |