chore: Add CI workflow
All checks were successful
CI / cache-and-install (push) Successful in 23s

This commit is contained in:
严浩
2024-08-05 11:13:07 +08:00
parent 81b11953e1
commit fb47374cbc

31
.gitea/workflows/ci.yaml Normal file
View File

@ -0,0 +1,31 @@
name: CI
on:
- push
- pull_request
jobs:
cache-and-install:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 8
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build