Merge pull request 'Add CI workflow for tests' (#30) from ci into dev

Reviewed-on: https://codeberg.org/yeentown/barkey/pulls/30
This commit is contained in:
zima 2024-12-22 00:52:58 +00:00
commit 695e7fd68e

View file

@ -0,0 +1,35 @@
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