Skip to content

Commit 56c26c8

Browse files
authored
test: add homepage feature ci test (#13)
1 parent a495f82 commit 56c26c8

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Test Homepage
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- '**'
10+
11+
jobs:
12+
test-homepage:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: 18
20+
21+
- name: Install dependencies
22+
run: npm ci
23+
24+
- name: Build
25+
run: npm run build
26+
27+
- name: Run bee-dev
28+
run: npx bee-dev &
29+
30+
- name: Wait for bee-dev
31+
run: npx npxie await http://localhost:1633/stamps
32+
33+
- name: Run gateway
34+
run: |
35+
export DATABASE_CONFIG="{}"
36+
export TEMPORARY=5
37+
export HOMEPAGE=9461d23ca46636017661ee124bc82109edba3312bfe0510ffc7eeaa562383ec2
38+
node dist > gateway.log 2>&1 < /dev/null &
39+
40+
- name: Check image/jpeg content-type
41+
run: npx npxie content-type-is http://localhost:3000 "image/jpeg"

0 commit comments

Comments
 (0)