Skip to content

Add vite

Add vite #89

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@v4
uses: actions/cache@v3

Check failure on line 24 in .github/workflows/fronttest.yaml

View workflow run for this annotation

GitHub Actions / Frontend

Invalid workflow file

The workflow is not valid. .github/workflows/fronttest.yaml (Line: 24, Col: 9): 'uses' is already defined
with:
path: "**/client/node_modules"
key: ${{ runner.os }}-v2-${{ hashFiles('**/client/package-lock.json') }}
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "21.x"
- name: Install dependencies
working-directory: ./client
run: npm install
- name: Check style
working-directory: ./client
run: npx prettier --check .
- name: Build
working-directory: ./client
run: npm run build
- name: Unit Tests
working-directory: ./client
run: echo TODO