ci: add checkpr

This commit is contained in:
thislight 2024-12-04 23:19:04 +08:00
parent 0fca81dc93
commit f0456337d5
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E

View file

@ -0,0 +1,34 @@
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