run tests in CI

This commit is contained in:
dakkar 2024-06-15 12:17:44 +00:00 committed by Amelia Yukii
parent d27965d8b3
commit cc598384ce
2 changed files with 4 additions and 2 deletions

View file

@ -6,7 +6,7 @@
#───┘ URL └───────────────────────────────────────────────────── #───┘ URL └─────────────────────────────────────────────────────
# Final accessible URL seen by a user. # Final accessible URL seen by a user.
url: https://example.tld/ url: http://misskey.local
# ONCE YOU HAVE STARTED THE INSTANCE, DO NOT CHANGE THE # ONCE YOU HAVE STARTED THE INSTANCE, DO NOT CHANGE THE
# URL SETTINGS AFTER THAT! # URL SETTINGS AFTER THAT!

View file

@ -11,14 +11,16 @@ testCommit:
variables: variables:
POSTGRES_PASSWORD: ci POSTGRES_PASSWORD: ci
script: script:
- apt-get update && apt-get install -y git wget curl build-essential python3 - 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/default.yml
- cp .config/ci.yml .config/test.yml
- corepack enable - corepack enable
- corepack prepare pnpm@latest --activate - corepack prepare pnpm@latest --activate
- git submodule update --init - git submodule update --init
- pnpm install --frozen-lockfile - pnpm install --frozen-lockfile
- pnpm run build - pnpm run build
- pnpm run migrate - pnpm run migrate
- pnpm run --filter='!megalodon' test
- pnpm run --filter=backend lint - pnpm run --filter=backend lint
- pnpm run --filter=frontend eslint - pnpm run --filter=frontend eslint
cache: cache: