File tree Expand file tree Collapse file tree 5 files changed +94
-27
lines changed Expand file tree Collapse file tree 5 files changed +94
-27
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "extends": "eslint:recommended",
3
+ "env": {
4
+ "es2022": true,
5
+ "node": true,
6
+ "jest": true,
7
+ "mocha": true
8
+ },
9
+ "globals": {
10
+ "SELECT": true,
11
+ "INSERT": true,
12
+ "UPSERT": true,
13
+ "UPDATE": true,
14
+ "DELETE": true,
15
+ "CREATE": true,
16
+ "DROP": true,
17
+ "CDL": true,
18
+ "CQL": true,
19
+ "CXL": true,
20
+ "cds": true
21
+ },
22
+ "rules": {
23
+ "no-console": "off",
24
+ "require-atomic-updates": "off"
25
+ }
26
+ }
Original file line number Diff line number Diff line change
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 : [18.x, 16.x]
17
+ steps :
18
+ - uses : actions/checkout@v2
19
+ - name : Use Node.js ${{ matrix.node-version }}
20
+ uses : actions/setup-node@v2
21
+ with :
22
+ node-version : ${{ matrix.node-version }}
23
+ - run : npm i -g @sap/cds-dk
24
+ - run : npm i
25
+ - run : cds v
26
+ - run : npm run lint
27
+ - run : npm run test
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ workflow_dispatch :
5
+
6
+ permissions :
7
+ contents : write
8
+
9
+ jobs :
10
+ publish-npm :
11
+ runs-on : ubuntu-latest
12
+ environment : npm
13
+ steps :
14
+ - uses : actions/checkout@v3
15
+ - uses : actions/setup-node@v3
16
+ with :
17
+ node-version : 18
18
+ registry-url : https://registry.npmjs.org/
19
+ - name : run tests
20
+ run : |
21
+ npm i -g @sap/cds-dk
22
+ npm i
23
+ npm run lint
24
+ npm run test
25
+ - name : get version
26
+ id : package-version
27
+ uses :
martinbeentjes/[email protected]
28
+ - name : parse changelog
29
+ id : parse-changelog
30
+
31
+ with :
32
+ version : ' ${{ steps.package-version.outputs.current-version }}'
33
+ - name : create a GitHub release
34
+ uses : ncipollo/release-action@v1
35
+ with :
36
+ tag : ' v${{ steps.package-version.outputs.current-version }}'
37
+ body : ' ${{ steps.parse-changelog.outputs.body }}'
38
+ - run : npm publish --access public
39
+ env :
40
+ NODE_AUTH_TOKEN : ${{secrets.npm_token}}
Original file line number Diff line number Diff line change 11
11
"scripts" : {
12
12
"build" : " cds build" ,
13
13
"start" : " cds run" ,
14
+ "lint" : " npx eslint ." ,
14
15
"test" : " npx jest --silent"
15
16
},
16
17
"devDependencies" : {
You can’t perform that action at this time.
0 commit comments