barkey/.forgejo/workflows/tests.yml
2024-12-21 17:36:50 -07:00

35 lines
967 B
YAML

on:
push:
branches:
- stable
- dev
pull_request:
types: [opened, synchronize, reopened]
jobs:
testCommit:
runs-on: yeentown-dev
container:
image: node:iron
services:
postgres:
image: postgres:15
env:
POSTGRES_PASSWORD: ci
redis:
image: redis:latest
steps:
- uses: actions/checkout@v4
- run: |
apt-get update && apt-get install -y git wget curl build-essential python3 ffmpeg
cp .config/ci.yml .config/default.yml
cp .config/ci.yml .config/test.yml
corepack enable
corepack prepare pnpm@latest --activate
git submodule update --init
pnpm install --frozen-lockfile
pnpm run build
pnpm run migrate
pnpm run --filter='!megalodon' test
pnpm run --filter=backend --filter=misskey-js lint
pnpm run --filter=frontend --filter=frontend-embed eslint