Skip to content

Commit

Permalink
Clean up, adding docs, adding working dir
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo Zanini <[email protected]>
  • Loading branch information
ricardozanini committed Nov 30, 2023
1 parent f3f5792 commit 24fb132
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .ci/validation/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
npm install -g ts-node typescript
# SW Schema Validation Application

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.
7 changes: 3 additions & 4 deletions .ci/validation/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
"name": "validation",
"version": "1.0.0",
"version": "0.9.0-snapshot",
"description": "",
"main": "src/index.js",
"scripts": {
"start": "ts-node ./src/index.ts",
"test": "jest"
},
"keywords": [],
"author": "",
"keywords": ["cncf", "serverless", "workflow", "specification"],
"author": "CNCF Serverless Workflow Specification",
"license": "ISC",
"devDependencies": {
"@babel/preset-typescript": "^7.23.3",
"@types/jest": "^29.5.10",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/schema-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:

jobs:
build:
defaults:
run:
working-directory: .ci/validation
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -23,5 +26,5 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: cd .ci/validation && npm install && cd -
- run: cd .ci/validation && npm test
- run: npm install
- run: npm test

0 comments on commit 24fb132

Please sign in to comment.