forked from sakura-tel/areionskey
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 860 Bytes
/
nodejs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Node.js CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x]
services:
postgres:
image: postgres:11.2-alpine
ports:
- 54311:5432
env:
POSTGRES_DB: test-misskey
POSTGRES_HOST_AUTH_METHOD: trust
redis:
image: redis:4.0-alpine
ports:
- 56311:6379
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2.2.4
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: sudo apt-get update -y
- run: sudo apt-get install -y --no-install-recommends ffmpeg
- run: pnpm i --frozen-lockfile
- run: pnpm build
- run: ls built/meta.json
- run: cp test/test.yml .config
- run: pnpm test