From 4277b40eacb2b8d4c8a05188206c2bf1de0eb6ed Mon Sep 17 00:00:00 2001 From: Zabil Cheriya Maliackal Date: Mon, 10 Jun 2024 10:24:50 +0100 Subject: [PATCH] Update build file Signed-off-by: Zabil Cheriya Maliackal --- .github/workflows/nodejs.yml | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index d817e3b..e57463a 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -19,7 +19,7 @@ jobs: - name: npm install and test run: | - npm install + npm ci npm test -w gauge-ts env: CI: true @@ -43,7 +43,7 @@ jobs: name: gauge-ts path: ./artifacts - sample-project: + e2e-test: needs: build-artifacts strategy: matrix: @@ -52,15 +52,16 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: BugDiver/setup-gauge@master - with: - gauge-version: master - + - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} + - name: npm dependencies + run: | + npm ci + - uses: actions/download-artifact@v1 with: name: gauge-ts @@ -68,18 +69,10 @@ jobs: - name: Install gauge-ts run: | - gauge install ts -f ./artifacts/gauge-ts-*.zip + npx gauge install ts -f ./artifacts/gauge-ts-*.zip shell: bash - - name: Initialize a sample project + - name: Run functional tests run: | - mkdir sample - cd sample - gauge init ts - npm install ../artifacts/gauge-ts-*.tgz + npm run test -w e2e shell: bash - - - name: Run sample project - run: | - cd sample - gauge run specs