File tree Expand file tree Collapse file tree 1 file changed +61
-0
lines changed
Expand file tree Collapse file tree 1 file changed +61
-0
lines changed Original file line number Diff line number Diff line change 1+ name : checks
2+ on :
3+ - push
4+ - pull_request
5+
6+ jobs :
7+ lint :
8+ uses : boringnode/.github/.github/workflows/lint.yml@main
9+
10+ typecheck :
11+ uses : boringnode/.github/.github/workflows/typecheck.yml@main
12+
13+ test :
14+ runs-on : ubuntu-latest
15+
16+ services :
17+ redis :
18+ image : redis:alpine
19+ ports :
20+ - 6379:6379
21+ options : >-
22+ --health-cmd "redis-cli ping"
23+ --health-interval 10s
24+ --health-timeout 5s
25+ --health-retries 5
26+
27+ postgres :
28+ image : postgres:alpine
29+ ports :
30+ - 5432:5432
31+ env :
32+ POSTGRES_USER : postgres
33+ POSTGRES_PASSWORD : postgres
34+ POSTGRES_DB : queue_test
35+ options : >-
36+ --health-cmd "pg_isready -U postgres"
37+ --health-interval 10s
38+ --health-timeout 5s
39+ --health-retries 5
40+
41+ steps :
42+ - uses : actions/checkout@v4
43+
44+ - name : Setup Node.js
45+ uses : actions/setup-node@v4
46+ with :
47+ node-version : 24
48+
49+ - name : Install dependencies
50+ run : npm install
51+
52+ - name : Run tests
53+ run : npm test
54+ env :
55+ REDIS_HOST : localhost
56+ REDIS_PORT : 6379
57+ PG_HOST : localhost
58+ PG_PORT : 5432
59+ PG_USER : postgres
60+ PG_PASSWORD : postgres
61+ PG_DATABASE : queue_test
You can’t perform that action at this time.
0 commit comments