tutu/.forgejo/workflows/checkpr.yml
2024-12-04 23:19:04 +08:00

34 lines
761 B
YAML

on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
depoly:
runs-on: fedora-41
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version-file: 'package.json'
- name: Cache Dependencies
id: dependencies-cache
uses: actions/cache@v4
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
restore-keys: |
${{ runner.os }}-bun-
- name: Install Dependencies
run: bun install
- name: Validate types
run: bun typecheck
- name: Build Dist
run: VITE_CODE_VERSION=$GITHUB_SHA bun dist