tutu/.forgejo/workflows/checkpr.yml
thislight 4d4e787b84
All checks were successful
/ checkpr (pull_request) Successful in 1m23s
ci/checkpr: correct the job name
2024-12-04 23:45:59 +08:00

34 lines
762 B
YAML

on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
checkpr:
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