-
Notifications
You must be signed in to change notification settings - Fork 92
87 lines (78 loc) · 2.09 KB
/
ci.yml
File metadata and controls
87 lines (78 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
on:
push:
paths:
- "misc/**"
- "crypto/**"
- "jsonrpc/**"
- "browser/**"
- "relay/**"
- ".github/workflows/ci.yml"
pull_request:
paths:
- "misc/**"
- "crypto/**"
- "jsonrpc/**"
- "browser/**"
- "relay/**"
- ".github/workflows/ci.yml"
name: CI Checks
permissions:
contents: read
jobs:
ci:
name: CI
runs-on: ubuntu-latest
strategy:
fail-fast: false # don't abort all jobs in matrix if one fails
matrix:
test-prefix:
- misc/logger
- misc/encoding
- misc/keyvaluestorage
- misc/time
- misc/heartbeat
- misc/environment
- misc/cacao
- misc/identity-keys
- misc/events
- misc/did-jwt
- misc/safe-json
- crypto/ecies-25519
- crypto/crypto
- crypto/randombytes
- jsonrpc/types
- jsonrpc/provider
- jsonrpc/utils
- jsonrpc/http-connection
- jsonrpc/ws-connection
- browser/window-getters
- browser/window-metadata
- relay/relay-api
- relay/relay-auth
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Check node_modules cache
id: cache-node-modules
uses: actions/cache@v4
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-nodemodules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-nodemodules-
- name: Install NPM Dependencies
run: npm ci
- name: Prettier
run: npm run prettier -- --filter=./${{ matrix.test-prefix }}
- name: Lint
run: npm run lint -- --filter=./${{ matrix.test-prefix }}
- name: Build
run: npm run build -- --filter=./${{ matrix.test-prefix }}
- name: Test
run: npm run test -- --filter=./${{ matrix.test-prefix }}
env:
TEST_PROJECT_ID: ${{ secrets.TEST_PROJECT_ID }}