Add vite #86
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: 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 |