chore: FRON-55 Theme toggler using local storage #190
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 Lint and Test | |
on: | |
push: | |
branches: ['main', 'staging', 'dev'] | |
pull_request: | |
branches: ['main', 'staging', 'dev'] | |
jobs: | |
lint: | |
name: ⬣ ESLint, ʦ TypeScript, 💅 Prettier, ✅ Cypress | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- name: ⎔ Setup node | |
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 | |
with: | |
node-version: 20 | |
- name: Install pnpm | |
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d | |
with: | |
version: 8 | |
run_install: true | |
- name: 🔬 Lint | |
run: pnpm lint:strict | |
- name: 🔎 Type check | |
run: pnpm typecheck | |
- name: 💅 Prettier check | |
run: pnpm format:check | |
- name: ✅ Cypress tests | |
uses: cypress-io/github-action@1b70233146622b69e789ccdd4f9452adc638d25a | |
with: | |
browser: chrome | |
build: pnpm build | |
component: true | |
start: pnpm start | |
wait-on: 'http://localhost:3000' |