fix(deps): update react monorepo #2094
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: Tests | |
on: | |
pull_request: | |
branches: [master] | |
push: | |
branches: [master] | |
jobs: | |
test-frontend: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dorny/paths-filter@v2 | |
id: filter | |
with: | |
filters: | | |
frontend: | |
- 'frontend/**' | |
- '.github/workflows/*' | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v3 | |
if: steps.filter.outputs.frontend == 'true' | |
with: | |
node-version: 18.x | |
- name: Install dependencies | |
if: steps.filter.outputs.frontend == 'true' | |
run: yarn install --frozen-lockfile | |
working-directory: ./frontend | |
- name: Build frontend | |
if: steps.filter.outputs.frontend == 'true' | |
run: yarn build | |
working-directory: ./frontend | |
- name: Run tests | |
if: steps.filter.outputs.frontend == 'true' | |
run: yarn test --coverage --watchAll=false | |
working-directory: ./frontend | |
- name: Upload coverage to Codecov | |
if: steps.filter.outputs.frontend == 'true' | |
uses: codecov/codecov-action@v3 | |
with: | |
flags: frontend | |
fail_ci_if_error: true | |
directory: ./frontend |