-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (47 loc) · 1.31 KB
/
test.yml
File metadata and controls
59 lines (47 loc) · 1.31 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
name: Test action
on:
pull_request:
workflow_dispatch:
jobs:
test_success:
runs-on: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Checkout Java
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 20
- name: Set up Maven
uses: stCarolas/setup-maven@v4.5
with:
maven-version: 3.8.2
- name: Install CAPs cds-dk
run: npm i -g @sap/cds-dk
- name: Test 'Hello world' CAP Notebooks
uses: mnkiefer/notebook-runner@main
with:
notebook-files: '_notebooks/hello-world_java.capnb _notebooks/hello-world_node.capnb'
artifacts-on-success: true
test_failure:
runs-on: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install CAPs cds-dk
run: npm i -g @sap/cds-dk
- name: Test broken 'Hello world' CAP Notebook
uses: mnkiefer/notebook-runner@main
with:
notebook-files: '_notebooks/broken.capnb'
continue-on-error: true
- name: Check for failure
if: always() && (${{ steps.test_failure.outcome }} == 'failure')
run: exit 0