Skip to content

Chore/add ci frontend #1

Chore/add ci frontend

Chore/add ci frontend #1

Workflow file for this run

# https://turbo.build/repo/docs/ci/github-actions
name: Test Frontend CI
on:
pull_request:
branches:
- main
paths:
- 'frontend/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Cache node modules
uses: actions/cache@v4
with:
path: frontend/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/frontend/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
working-directory: frontend
run: yarn install
- name: Run lint
working-directory: frontend
run: yarn lint
- name: Run build
working-directory: frontend
run: yarn build