Skip to content
This repository was archived by the owner on Sep 5, 2025. It is now read-only.

Commit e0a5ce7

Browse files
ci: update workflow
1 parent 64f73ab commit e0a5ce7

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,18 @@ on:
66
schedule:
77
- cron: '0 0 * * 0'
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
test-node:
1114
runs-on: ubuntu-latest
15+
timeout-minutes: 10
1216

1317
strategy:
1418
matrix:
15-
node-version: [12.x, 14.x, 16.x]
19+
node-version:
20+
- 22
1621

1722
services:
1823
postgres:
@@ -28,15 +33,16 @@ jobs:
2833
- 5432:5432
2934

3035
steps:
31-
- uses: actions/checkout@v2
36+
- name: Checkout repository
37+
uses: actions/checkout@v4
38+
3239
- name: Use Node.js ${{ matrix.node-version }}
33-
uses: actions/setup-node@v1
40+
uses: actions/setup-node@v4
3441
with:
3542
node-version: ${{ matrix.node-version }}
3643

37-
- run: npm ci
44+
- name: Install dependencies
45+
run: npm ci
3846

39-
- run: npm test
40-
env:
41-
CI: true
42-
timeout-minutes: 10
47+
- name: Run tests
48+
run: npm test

0 commit comments

Comments
 (0)