Rewrite tests with React Testing Library #30
Workflow file for this run
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: Test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup NodeJS 20 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
cache: yarn | |
- name: Install dependencies | |
run: yarn | |
- name: Check formatting | |
run: yarn format | |
- name: Build | |
run: yarn build | |
- name: Check bundle size | |
run: yarn size | |
- name: Run tests | |
run: yarn test |