Skip to content

Add vite

Add vite #86

Workflow file for this run

name: Frontend
on:
push:
branches:
- main
paths:
- "client/**"
- ".github/workflows/fronttest.yaml"
pull_request:
branches:
- main
paths:
- "client/**"
- ".github/workflows/fronttest.yaml"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: "**/client/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/client/yarn.lock') }}
- name: Use Node.js 14
uses: actions/setup-node@v2
with:
node-version: "14"
- name: Yarn Install
working-directory: ./client
run: yarn install
- name: Check style
working-directory: ./client
run: yarn prettier
- name: Build
working-directory: ./client
run: yarn build
- name: Unit Tests
working-directory: ./client
run: yarn test