diff options
| author | dakkar <dakkar@thenautilus.net> | 2024-11-08 16:32:02 +0000 |
|---|---|---|
| committer | dakkar <dakkar@thenautilus.net> | 2024-11-08 16:32:02 +0000 |
| commit | b47b25871d1f64e81daa025f9368c00ef89d55cf (patch) | |
| tree | e1a3f338a8b799c3a66ff4fa6e5f2af1f4a2855e | |
| parent | replace new icons (diff) | |
| download | sharkey-b47b25871d1f64e81daa025f9368c00ef89d55cf.tar.gz sharkey-b47b25871d1f64e81daa025f9368c00ef89d55cf.tar.bz2 sharkey-b47b25871d1f64e81daa025f9368c00ef89d55cf.zip | |
example test config
| -rw-r--r-- | .config/test-example.yml | 17 | ||||
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | CONTRIBUTING.md | 2 |
3 files changed, 19 insertions, 1 deletions
diff --git a/.config/test-example.yml b/.config/test-example.yml new file mode 100644 index 0000000000..713cbdb0a0 --- /dev/null +++ b/.config/test-example.yml @@ -0,0 +1,17 @@ +url: 'http://misskey.local' + +setupPassword: example_password_please_change_this_or_you_will_get_hacked + +# ローカルでテストするときにポートを被らないようにするためデフォルトのものとは変える(以下同じ) +port: 61812 + +db: + host: 127.0.0.1 + port: 5432 + db: test-misskey + user: postgres + pass: '' +redis: + host: 127.0.0.1 + port: 6379 +id: aidx diff --git a/.gitignore b/.gitignore index 77ae92c023..aba71c5876 100644 --- a/.gitignore +++ b/.gitignore @@ -36,6 +36,7 @@ coverage # config /.config/* !/.config/example.yml +!/.config/test-example.yml !/.config/docker_example.yml !/.config/docker_example.env !/.config/cypress-devcontainer.yml diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c0f991c215..3b7f495dc7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -199,7 +199,7 @@ There are three types of test codes for the backend: #### Running Unit Tests or Single-server E2E Tests 1. Create a config file: ```sh -cp .github/misskey/test.yml .config/ +cp .config/test-example.yml .config/test.yml ``` 2. Start DB and Redis servers for testing: |