Skip to content

Commit 24fb132

Browse files
committed
Clean up, adding docs, adding working dir
Signed-off-by: Ricardo Zanini <[email protected]>
1 parent f3f5792 commit 24fb132

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

.ci/validation/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
npm install -g ts-node typescript
1+
# SW Schema Validation Application
2+
3+
This app is meant to be used on our CI. For an example of usage see [src/index.test.ts](src/index.test.ts) file.

.ci/validation/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
{
22
"name": "validation",
3-
"version": "1.0.0",
3+
"version": "0.9.0-snapshot",
44
"description": "",
55
"main": "src/index.js",
66
"scripts": {
77
"start": "ts-node ./src/index.ts",
88
"test": "jest"
99
},
10-
"keywords": [],
11-
"author": "",
10+
"keywords": ["cncf", "serverless", "workflow", "specification"],
11+
"author": "CNCF Serverless Workflow Specification",
1212
"license": "ISC",
1313
"devDependencies": {
14-
"@babel/preset-typescript": "^7.23.3",
1514
"@types/jest": "^29.5.10",
1615
"ts-jest": "^29.1.1",
1716
"ts-node": "^10.9.1",

.github/workflows/schema-check.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111

1212
jobs:
1313
build:
14+
defaults:
15+
run:
16+
working-directory: .ci/validation
1417
runs-on: ubuntu-latest
1518
strategy:
1619
matrix:
@@ -23,5 +26,5 @@ jobs:
2326
with:
2427
node-version: ${{ matrix.node-version }}
2528
cache: 'npm'
26-
- run: cd .ci/validation && npm install && cd -
27-
- run: cd .ci/validation && npm test
29+
- run: npm install
30+
- run: npm test

0 commit comments

Comments
 (0)