This repository has been archived by the owner on Oct 5, 2023. It is now read-only.
chore: 高速化 #3036
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Node.js CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
node-version: [16.x, 18.x, 19.x, 20.x] | |
services: | |
postgres: | |
image: postgres:15.1-alpine | |
ports: | |
- 54311:5432 | |
env: | |
POSTGRES_DB: test-misskey | |
POSTGRES_HOST_AUTH_METHOD: trust | |
redis: | |
image: redis:7.0-alpine | |
ports: | |
- 56311:6379 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- uses: pnpm/action-setup@v2.2.4 | |
with: | |
version: 7 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- run: node devtools/diag-environment.js | |
- run: sudo apt-get update | |
- run: sudo apt-get install -y ffmpeg | |
- run: pnpm i | |
- run: pnpm build | |
- run: cp test/test.yml .config | |
- run: pnpm test |