8
8
- main
9
9
10
10
jobs :
11
- ci-on-cloud-build :
12
- name : CI on ${{ matrix.os }}, Node.js ${{ matrix.node }}
11
+ build-audit-test :
12
+ name : Build & Test all packages on ${{ matrix.os }}, Node ${{ matrix.node }}
13
13
runs-on : ${{ matrix.os }}
14
14
strategy :
15
15
matrix :
16
16
os : [ubuntu-latest]
17
- # pick at least one Node.js `lts` version and the `current` version (i.e. the latest Node.js version available)
17
+ # Try testing all packages with:
18
+ # 1. Maintenance LTS
19
+ # 2. Active LTS
20
+ # 3. Current (i.e. the latest Node.js version available)
18
21
# https://nodejs.org/en/
19
- # node: ['16.15.1', 'current']
22
+ # https://nodejs.org/en/about/releases/
20
23
# it seems Cloud Build complains with HTTP 429 if I trigger too many builds
21
24
# Quota exceeded for quota metric 'Build and Operation Get requests'
22
- node : ['16.15.1 ']
25
+ node : ['16.17.0', 'current ']
23
26
steps :
24
27
- name : 🛎️ Check out repo
25
28
uses : actions/checkout@v3
@@ -32,69 +35,70 @@ jobs:
32
35
- name : ⚙️ Install dependencies
33
36
run : npm ci
34
37
35
- - name : 🛡️ Audit dependencies
38
+ - name : 🛡️ Audit dependencies (audit-level high)
36
39
# https://docs.npmjs.com/cli/v8/commands/npm-audit#audit-level
37
40
run : npm audit --audit-level high
38
41
39
- - name : 🔧 Build packages
42
+ - name : 🛡️ Audit dependencies (audit-level moderate)
43
+ continue-on-error : true
44
+ run : npm audit --audit-level moderate
45
+
46
+ - name : 📦 Build all libraries
40
47
run : npm run build:libs
41
48
42
- - name : 🔍 Test library @jackdbd/checks
49
+ - name : 🔍 Test @jackdbd/checks
43
50
run : npm run test:ci -w packages/checks
44
51
45
- - name : 🔍 Test library @jackdbd/cloud-scheduler-utils
52
+ - name : 🔍 Test @jackdbd/cloud-scheduler-utils
46
53
env :
47
54
SA_NOTIFIER : ${{ secrets.SA_NOTIFIER }}
48
55
run : npm run test:ci -w packages/cloud-scheduler-utils
49
56
50
- - name : 🔍 Test library @jackdbd/cloud-tasks-utils
57
+ - name : 🔍 Test @jackdbd/cloud-tasks-utils
51
58
run : npm run test:ci -w packages/cloud-tasks-utils
52
59
53
- - name : 🔍 Test library @jackdbd/firestore-utils
60
+ - name : 🔍 Test @jackdbd/firestore-utils
54
61
env :
55
62
SA_FIRESTORE_USER_TEST : ${{ secrets.SA_FIRESTORE_USER_TEST }}
56
63
SA_FIRESTORE_VIEWER_TEST : ${{ secrets.SA_FIRESTORE_VIEWER_TEST }}
57
64
run : npm run test:ci -w packages/firestore-utils
58
65
59
- - name : 🔍 Test library @jackdbd/notifications
66
+ - name : 🔍 Test @jackdbd/notifications
60
67
env :
61
68
TELEGRAM : ${{ secrets.TELEGRAM }}
62
69
run : npm run test:ci -w packages/notifications
63
70
64
- - name : 🔍 Test library @jackdbd/plausible-client
71
+ - name : 🔍 Test @jackdbd/plausible-client
65
72
env :
66
73
PLAUSIBLE : ${{ secrets.PLAUSIBLE }}
67
74
run : npm run test:ci -w packages/plausible-client
68
75
69
- - name : 🔍 Test library @jackdbd/schemas
76
+ - name : 🔍 Test @jackdbd/schemas
70
77
run : npm run test:ci -w packages/schemas
71
78
72
- - name : 🔍 Test library @jackdbd/secret-manager-utils
79
+ - name : 🔍 Test @jackdbd/secret-manager-utils
73
80
env :
74
81
SA_SECRET_MANAGER_ADMIN_TEST : ${{ secrets.SA_SECRET_MANAGER_ADMIN_TEST }}
75
82
run : npm run test:ci -w packages/secret-manager-utils
76
83
77
- - name : 🔍 Test library @jackdbd/send-telegram-message
84
+ - name : 🔍 Test @jackdbd/send-telegram-message
78
85
env :
79
86
TELEGRAM : ${{ secrets.TELEGRAM }}
80
87
run : npm run test:ci -w packages/send-telegram-message
81
88
82
- - name : 🔍 Test library @jackdbd/sqlite-utils
89
+ - name : 🔍 Test @jackdbd/sqlite-utils
83
90
run : npm run test:ci -w packages/sqlite-utils
84
91
85
- - name : 🔍 Test library @jackdbd/stripe-utils
92
+ - name : 🔍 Test @jackdbd/stripe-utils
86
93
run : npm run test:ci -w packages/stripe-utils
87
94
88
- - name : 🔍 Test library @jackdbd/tags-logger
95
+ - name : 🔍 Test @jackdbd/tags-logger
89
96
run : npm run test:ci -w packages/tags-logger
90
97
91
- # - name: 🔍 Test library @jackdbd/telegram-bot
92
- # run: npm run test:ci -w packages/telegram-bot
93
-
94
- - name : 🔍 Test library @jackdbd/telegram-text-messages
98
+ - name : 🔍 Test @jackdbd/telegram-text-messages
95
99
run : npm run test:ci -w packages/telegram-text-messages
96
100
97
- - name : 🔍 Test library @jackdbd/utils
101
+ - name : 🔍 Test @jackdbd/utils
98
102
run : npm run test:ci -w packages/utils
99
103
100
104
- name : ⬆️ Upload test coverage to Codecov
0 commit comments