Skip to content

Better CAP Notebook examples #108

Better CAP Notebook examples

Better CAP Notebook examples #108

Workflow file for this run

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/[email protected]
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