refactor: import Heading instead of Text from chakra-ui for rendering… #149
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: Code Quality | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
pull_request: | |
branches: | |
- main | |
- dev | |
jobs: | |
test: | |
name: Run Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: npm ci | |
- run: npm run test --if-present | |
lint: | |
name: Run Linter | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: npm ci | |
- run: npm run format | |
cypress-run: | |
name: Run Cypress Tests | |
runs-on: ubuntu-latest | |
container: cypress/browsers:node12.18.3-chrome87-ff82 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: npm ci | |
- name: Cypress run | |
uses: cypress-io/github-action@v5.0.9 | |
with: | |
# Specify Browser since container image is compile with Firefox | |
browser: chrome | |
start: npm run dev |