2021-07-29 21:01:52 -07:00
|
|
|
name: API report
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
report:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Setup Node.js
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: 16.5.0
|
|
|
|
|
|
|
|
- name: Cache dependencies
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: ~/.npm
|
|
|
|
key: npm-${{ hashFiles('package-lock.json') }}
|
|
|
|
restore-keys: npm-
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: npm ci
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: npm run build
|
|
|
|
|
|
|
|
- name: Check files
|
|
|
|
run: ls built
|
|
|
|
|
|
|
|
- name: API report
|
|
|
|
run: npm run api-prod
|
|
|
|
|
|
|
|
- name: Show report
|
|
|
|
if: always()
|
2021-07-29 21:03:30 -07:00
|
|
|
run: cat temp/misskey-js.api.md
|