Skip to content

Build PokéData Frontend #14

Build PokéData Frontend

Build PokéData Frontend #14

Workflow file for this run

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
uses: borales/actions-yarn@v4
with:
cmd: install
- run: cd frontend
- run: ls -A
- name: Build for Production
uses: borales/actions-yarn@v4
with:
cmd: build
- name: Run Tests & Coverage
uses: borales/actions-yarn@v4
with:
cmd: test