feat: add frontend error handling (password reset) #94
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: Frontend install, build, lint and tests | |
on: | |
push: | |
paths: | |
- 'front/**' | |
pull_request: | |
paths: | |
- 'front/**' | |
defaults: | |
run: | |
working-directory: ./front | |
jobs: | |
lint-and-format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: yarn | |
cache-dependency-path: ./front/yarn.lock | |
node-version: 18 | |
- name: Install packages | |
run: yarn --immutable | |
- name: Run the TS linter | |
run: yarn lint | |
- name: Run prettier | |
run: yarn format:check | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: yarn | |
cache-dependency-path: ./front/yarn.lock | |
node-version: 18 | |
- name: Install packages | |
run: yarn --immutable | |
- name: Run tests | |
run: yarn test:coverage:ci | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: yarn | |
cache-dependency-path: ./front/yarn.lock | |
node-version: 18 | |
- name: Install packages | |
run: yarn --immutable | |
- name: Run build | |
run: yarn build |