File tree Expand file tree Collapse file tree 3 files changed +6478
-106
lines changed Expand file tree Collapse file tree 3 files changed +6478
-106
lines changed Original file line number Diff line number Diff line change
1
+ name : Build examples
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' *'
7
+ pull_request :
8
+ branches :
9
+ - main
10
+
11
+ jobs :
12
+ build :
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - name : Checkout repository
17
+ uses : actions/checkout@v4
18
+
19
+ - uses : pnpm/action-setup@v4
20
+ name : Install pnpm
21
+ with :
22
+ run_install : false
23
+
24
+ - name : Setup Node.js
25
+ uses : actions/setup-node@v4
26
+ with :
27
+ node-version : 20
28
+ cache : ' pnpm'
29
+
30
+ - name : Install dependencies
31
+ run : pnpm install
32
+
33
+ - name : Run linter
34
+ run : pnpm run lint
35
+
36
+ # - name: Run tests
37
+ # run: npm test
38
+ # working-directory: ${{ matrix.project_subfolder }}
39
+
40
+ - name : Build project
41
+ run : pnpm run build
42
+
43
+ # - name: Upload build artifacts
44
+ # uses: actions/upload-artifact@v4
45
+ # with:
46
+ # name: build-output-${{ matrix.project_subfolder }}
47
+ # path: ${{ matrix.project_subfolder }}/dist/
Original file line number Diff line number Diff line change
1
+ name : Run Integration tests
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ test :
7
+ strategy :
8
+ matrix :
9
+ directories : [packages/nabto/webrtc-signaling-client, packages/nabto/webrtc-signaling-device]
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Checkout repository
13
+ uses : actions/checkout@v4
14
+
15
+ - uses : pnpm/action-setup@v4
16
+ name : Install pnpm
17
+ with :
18
+ run_install : false
19
+
20
+ - name : Setup Node.js
21
+ uses : actions/setup-node@v4
22
+ with :
23
+ node-version : 22
24
+ cache : ' pnpm'
25
+
26
+ - uses : oven-sh/setup-bun@v2
27
+
28
+ - name : Install integration test server
29
+ run : bun install
30
+ working-directory : integration_test_server
31
+
32
+ - name : Start integration test server
33
+ run : bun dev &
34
+ working-directory : integration_test_server
35
+
36
+ - name : Install sdk
37
+ run : pnpm install
38
+
39
+ - name : run lint
40
+ run : pnpm run lint
41
+ working-directory : ${{ matrix.directories }}
42
+
43
+ - name : Run tests
44
+ run : pnpm run test:i
45
+ working-directory : ${{ matrix.directories }}
You can’t perform that action at this time.
0 commit comments