diff --git a/.ci/validation/README.md b/.ci/validation/README.md index 59757e61..c2c65044 100644 --- a/.ci/validation/README.md +++ b/.ci/validation/README.md @@ -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. diff --git a/.ci/validation/package.json b/.ci/validation/package.json index 0d5eb357..3716cc2e 100644 --- a/.ci/validation/package.json +++ b/.ci/validation/package.json @@ -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", diff --git a/.github/workflows/schema-check.yaml b/.github/workflows/schema-check.yaml index ea1bd104..c2aa46c5 100644 --- a/.github/workflows/schema-check.yaml +++ b/.github/workflows/schema-check.yaml @@ -11,6 +11,9 @@ on: jobs: build: + defaults: + run: + working-directory: .ci/validation runs-on: ubuntu-latest strategy: matrix: @@ -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