diff --git a/.github/workflows/validation.yaml b/.github/workflows/validation.yaml index cc8c7efa..c2d557b4 100644 --- a/.github/workflows/validation.yaml +++ b/.github/workflows/validation.yaml @@ -10,29 +10,22 @@ jobs: steps: - name: Checkout wot-testing - uses: actions/checkout@v2 - - - name: Checkout thingweb-playground - uses: actions/checkout@v2 - with: - repository: thingweb/thingweb-playground - path: thingweb-playground + uses: actions/checkout@v4 - name: Setup Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v4.1.0 with: - node-version: '15' - - - name: Use lerna - run: npm install -g lerna@6.6.2 - - - name: Bootstrap - working-directory: thingweb-playground - run: lerna bootstrap --no-ci + node-version: '20' + - name: Create empty folder + run: npm init -y + + - name: Install Playground CLI + run: npm i @thing-description-playground/cli + - name: Run validation script on all new matching files env: - VALIDATION_SCRIPT: thingweb-playground/packages/cli/index.js + VALIDATION_SCRIPT: node_modules/@thing-description-playground/cli/index.js PATTERN: "*.td.jsonld" run: | # Get the list of changed files