mirror of
https://codeberg.org/yeentown/barkey
synced 2025-01-03 16:31:01 +00:00
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:
commit
695e7fd68e
1 changed files with 35 additions and 0 deletions
35
.forgejo/workflows/tests.yml
Normal file
35
.forgejo/workflows/tests.yml
Normal 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
|
Loading…
Reference in a new issue