Skip to content

Build PokéData Frontend #18

Build PokéData Frontend

Build PokéData Frontend #18

name: Build PokéData Frontend
on:
push:
branches:
- main
paths:
- 'frontend/**'
workflow_dispatch:
defaults:
run:
working-directory: ./frontend
jobs:
build:
name: Build PokéData Frontend
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Node 20
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Enable Corepack
run: corepack enable
- name: Install dependencies
run: yarn install
- name: Build for Production
run: yarn build
- name: Run Tests & Coverage
run: yarn test