mirror of
https://github.com/evroon/bracket.git
synced 2026-01-19 03:28:41 -05:00
40 lines
712 B
YAML
40 lines
712 B
YAML
name: frontend
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
paths:
|
|
- '.github/**'
|
|
- 'frontend/**'
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-24.04
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- name: Enable Corepack
|
|
run: corepack enable
|
|
|
|
- name: Setup pnpm
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: '22'
|
|
cache: 'pnpm'
|
|
cache-dependency-path: frontend/pnpm-lock.yaml
|
|
|
|
- name: Install npm modules
|
|
run: pnpm i
|
|
working-directory: frontend
|
|
|
|
- name: Run prettier, lint, jest checks
|
|
run: pnpm test
|
|
working-directory: frontend
|