mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-25 02:46:43 -06:00
2b21c19362
* update deps * Update package.json * update deps * build: pass --strip-leading-paths to restore 0.2.x behavior (#13684) * ✌️ * ✌️ * pureimageの代わりに@napi-rs/canvasを使う (#13748) * pureimageの代わりに@napi-rs/canvasを使う * remove writestream * remove createtemp * wip * Update ClientServerService.ts * update pnpm to 9.x * update deps * re: update pnpm to 9.x * update node * ✌️ --------- Co-authored-by: anatawa12 <anatawa12@icloud.com> Co-authored-by: tamaina <tamaina@hotmail.co.jp>
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
name: Test (backend)
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- develop
|
|
paths:
|
|
- packages/backend/**
|
|
pull_request:
|
|
paths:
|
|
- packages/backend/**
|
|
|
|
jobs:
|
|
validate-api-json:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [20.12.2]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4.1.1
|
|
with:
|
|
submodules: true
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@v3
|
|
with:
|
|
version: 9
|
|
run_install: false
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v4.0.2
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: 'pnpm'
|
|
- name: Install Redocly CLI
|
|
run: npm i -g @redocly/cli
|
|
- run: corepack enable
|
|
- run: pnpm i --frozen-lockfile
|
|
- name: Check pnpm-lock.yaml
|
|
run: git diff --exit-code pnpm-lock.yaml
|
|
- name: Copy Configure
|
|
run: cp .config/example.yml .config/default.yml
|
|
- name: Build and generate
|
|
run: pnpm build && pnpm --filter backend generate-api-json
|
|
- name: Validation
|
|
run: npx @redocly/cli lint --extends=minimal ./packages/backend/built/api.json
|