mirror of
https://github.com/chrisbenincasa/tunarr.git
synced 2026-04-18 09:03:35 -04:00
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches: [main, dev, media-scanner]
|
|
pull_request:
|
|
branches: [main, dev, media-scanner]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
if: ${{ !contains(github.event.head_commit.message, '[nobuild]') }}
|
|
env:
|
|
TURBO_CACHE_DIR: .turbo
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Use Latest Corepack
|
|
run: |
|
|
npm install -g corepack@latest
|
|
corepack enable && corepack enable pnpm
|
|
pnpm --version
|
|
|
|
- name: Install Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: 22.13.0
|
|
cache: "pnpm"
|
|
|
|
- name: Cache Turbo
|
|
uses: actions/cache@v5
|
|
with:
|
|
path: .turbo
|
|
key: ${{ runner.os }}-turbo-${{ github.sha }}
|
|
restore-keys: |
|
|
${{ runner.os }}-turbo-
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Build server
|
|
run: pnpm turbo typecheck --filter=@tunarr/server
|
|
|
|
- name: Build web
|
|
run: pnpm turbo build --filter=@tunarr/web
|
|
|
|
- name: Run tests
|
|
run: pnpm turbo test -- run
|