Skip to content

Commit cd2e7fc

Browse files
committed
Integrate Jest into CI workflow
1 parent dd7dbca commit cd2e7fc

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

.github/workflows/test.yaml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,9 @@ name: Lint and test
22

33
on:
44
push:
5-
branches:
6-
- main
7-
- master
8-
- develop
5+
branches: [ main, master, develop ]
96
pull_request:
10-
branches:
11-
- main
12-
- master
13-
- develop
7+
branches: [ main, master, develop ]
148

159
defaults:
1610
run:
@@ -28,14 +22,12 @@ jobs:
2822
services:
2923
redis:
3024
image: 'redis:8.0.1'
31-
# Set health checks to wait until redis has started
3225
options: >-
3326
--health-cmd "redis-cli ping"
3427
--health-interval 10s
3528
--health-timeout 5s
3629
--health-retries 5
3730
ports:
38-
# Maps port 6379 on service container to the host
3931
- 6379:6379
4032

4133
steps:
@@ -72,7 +64,6 @@ jobs:
7264
"admin:email": "test@example.org",
7365
"admin:password": "hAN3Eg8W",
7466
"admin:password:confirm": "hAN3Eg8W",
75-
7667
"database": "redis",
7768
"redis:host": "127.0.0.1",
7869
"redis:port": 6379,
@@ -97,10 +88,7 @@ jobs:
9788
- name: Build NodeBB
9889
run: ./nodebb build
9990

100-
- name: Run ESLint
101-
run: npm run lint
102-
103-
- name: Node tests
91+
- name: Run Jest tests (primary integration requirement)
10492
run: npm test
10593

10694
- name: Extract coverage info

0 commit comments

Comments
 (0)