File tree Expand file tree Collapse file tree 1 file changed +68
-0
lines changed
Expand file tree Collapse file tree 1 file changed +68
-0
lines changed Original file line number Diff line number Diff line change 1+ name : build
2+
3+ on :
4+ push :
5+ pull_request :
6+
7+ jobs :
8+ check :
9+ runs-on : ubuntu-latest
10+ services :
11+ postgres :
12+ image : postgres:16-alpine
13+ env :
14+ POSTGRES_PASSWORD : postgres
15+ POSTGRES_USER : postgres
16+ POSTGRES_DB : hollo_test
17+ options : >-
18+ --health-cmd pg_isready
19+ --health-interval 10ms
20+ --health-timeout 3s
21+ --health-retries 50
22+ ports :
23+ - 5432:5432
24+
25+ redis :
26+ image : redis:7-alpine
27+ options : >-
28+ --health-cmd "redis-cli ping"
29+ --health-interval 10ms
30+ --health-timeout 3s
31+ --health-retries 50
32+ ports :
33+ - 6379:6379
34+ env :
35+ # HOME_URL=https://localhost/ # optional; if present, the home page will redirect to this URL
36+ DATABASE_URL : postgresql://postgres:postgres@localhost:5432/hollo_test
37+ REDIS_URL : redis://localhost/1
38+ # generate a secret key with `openssl rand -base64 32`
39+ SECRET_KEY : " 4b5Lr8rpzOCH1q3JL47SThetLNjUhEsAvHxio4Zjp9g="
40+ LOG_LEVEL : debug
41+ LOG_QUERY : true
42+
43+ BEHIND_PROXY : false
44+ LISTEN_PORT : 3000
45+ LISTEN_HOST : localhost
46+ # Setting ALLOW_PRIVATE_ADDRESS to true disables SSRF (Server-Side Request Forgery) protection
47+ # Set to true to test in local network
48+ # Will be replaced by list of allowed IPs once https://github.com/dahlia/fedify/issues/157
49+ # is implemented.
50+ ALLOW_PRIVATE_ADDRESS : true
51+ DRIVE_DISK : " fs"
52+ FS_ASSET_PATH : tmp/tests_assets
53+ steps :
54+ - uses : actions/checkout@v4
55+ - uses : pnpm/action-setup@v4
56+ with :
57+ version : 9.15.1+sha512.1acb565e6193efbebda772702950469150cf12bcc764262e7587e71d19dc98a423dff9536e57ea44c49bdf790ff694e83c27be5faa23d67e0c033b583be4bfcf
58+ run_install : false
59+ - uses : actions/setup-node@v4
60+ with :
61+ node-version : 23
62+ cache : pnpm
63+ - run : pnpm install
64+ - run : pnpm run check
65+ - name : Ensure the directory for test uploads
66+ run : mkdir -p tmp/test_assets
67+ - name : Run the tests
68+ run : pnpm run test
You can’t perform that action at this time.
0 commit comments