diff --git a/.forgejo/misskey/test.yml b/.forgejo/misskey/test.yml new file mode 100644 index 0000000000..60005abf5a --- /dev/null +++ b/.forgejo/misskey/test.yml @@ -0,0 +1,17 @@ +url: 'http://misskey.local' + +setupPassword: example_password_please_change_this_or_you_will_get_hacked + +# ローカルでテストするときにポートを被らないようにするためデフォルトのものとは変える(以下同じ) +port: 61812 + +db: + host: postgres + port: 5432 + db: test-misskey + user: postgres + pass: '' +redis: + host: redis + port: 6379 +id: aidx diff --git a/.forgejo/workflows/test-backend.yml b/.forgejo/workflows/test-backend.yml index 9d874092d4..e83890147b 100644 --- a/.forgejo/workflows/test-backend.yml +++ b/.forgejo/workflows/test-backend.yml @@ -27,15 +27,11 @@ jobs: services: postgres: image: postgres:15 - ports: - - 54312:5432 env: POSTGRES_DB: test-misskey POSTGRES_HOST_AUTH_METHOD: trust redis: image: redis:7 - ports: - - 56312:6379 steps: - uses: actions/checkout@v4.1.1 @@ -55,7 +51,7 @@ jobs: - name: Check pnpm-lock.yaml run: git diff --exit-code pnpm-lock.yaml - name: Copy Configure - run: cp .github/misskey/test.yml .config + run: cp .forgejo/misskey/test.yml .config - name: Build run: pnpm build - name: Test @@ -71,15 +67,11 @@ jobs: services: postgres: image: postgres:15 - ports: - - 54312:5432 env: POSTGRES_DB: test-misskey POSTGRES_HOST_AUTH_METHOD: trust redis: image: redis:7 - ports: - - 56312:6379 steps: - uses: actions/checkout@v4.1.1 @@ -97,7 +89,7 @@ jobs: - name: Check pnpm-lock.yaml run: git diff --exit-code pnpm-lock.yaml - name: Copy Configure - run: cp .github/misskey/test.yml .config + run: cp .forgejo/misskey/test.yml .config - name: Build run: pnpm build - name: Test