Chore/add ci frontend #1
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
# 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 |