Skip to content

Commit b98e56e

Browse files
committed
add test workflow
1 parent 6fd2f35 commit b98e56e

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

.github/workflows/test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
branches: [main]
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
node-version: [20.x, 22.x]
17+
cds-version: [8.9.4, latest]
18+
steps:
19+
- uses: actions/checkout@v2
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v2
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
- run: npm i -g @sap/cds-dk@${{ matrix.cds-version }}
25+
- run: npm i
26+
- run: cd test/incidents-app && npm i #TODO: Adjust to new template
27+
- run: npm run test

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,16 @@
2626
"@sap/xssec": "^3.6.2"
2727
},
2828
"peerDependencies": {
29-
"@sap/cds": "^8"
29+
"@sap/cds": ">=8"
3030
},
3131
"devDependencies": {
3232
"@cap-js/cds-test": "^0.2.0",
3333
"@cap-js/sqlite": "^1",
3434
"@sap/cds": "^8",
3535
"eslint": "^9.4.0",
3636
"eslint-plugin-jest": "^28.5.0",
37-
"jest": "^29.7.0"
37+
"jest": "^29.7.0",
38+
"@cap-js/sqlite": ">=2"
3839
},
3940
"cds": {
4041
"requires": {

0 commit comments

Comments
 (0)