update workflows

This commit is contained in:
Kagami Sascha Rosylight 2023-03-16 21:13:21 +01:00
parent d123722616
commit ce5a9630ca
2 changed files with 26 additions and 26 deletions

View file

@ -9,32 +9,28 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3.3.0
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v1 uses: actions/setup-node@v3.6.0
with: with:
node-version: 16.5.0 node-version: 18.x
cache: 'pnpm'
- name: Cache dependencies - run: corepack enable
uses: actions/cache@v2
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- name: Install dependencies - name: Install dependencies
run: npm ci run: pnpm i --frozen-lockfile
- name: Build - name: Build
run: npm run build run: pnpm --filter misskey-js build
- name: Check files - name: Check files
run: ls built run: ls packages/misskey-js/built
- name: API report - name: API report
run: npm run api-prod run: pnpm --filter misskey-js api-prod
- name: Show report - name: Show report
if: always() if: always()
run: cat temp/misskey-js.api.md run: cat packages/misskey-js/temp/misskey-js.api.md

View file

@ -16,33 +16,37 @@ jobs:
strategy: strategy:
matrix: matrix:
node-version: [16.5.0] node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v3.3.0
- uses: pnpm/action-setup@v2
with:
version: 7
run_install: false
- name: Setup Node.js ${{ matrix.node-version }} - name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1 uses: actions/setup-node@v3.6.0
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Cache dependencies - run: corepack enable
uses: actions/cache@v2
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- name: Install dependencies - name: Install dependencies
run: npm ci run: pnpm i --frozen-lockfile
- name: Check pnpm-lock.yaml
run: git diff --exit-code pnpm-lock.yaml
- name: Build - name: Build
run: npm run build run: pnpm --filter misskey-js build
- name: Test - name: Test
run: npm test run: pnpm --filter misskey-js test
env: env:
CI: true CI: true