Skip to content

Commit

Permalink
Update build file
Browse files Browse the repository at this point in the history
Signed-off-by: Zabil Cheriya Maliackal <[email protected]>
  • Loading branch information
zabil committed Jun 10, 2024
1 parent bd8a06d commit 4277b40
Showing 1 changed file with 10 additions and 17 deletions.
27 changes: 10 additions & 17 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

- name: npm install and test
run: |
npm install
npm ci
npm test -w gauge-ts
env:
CI: true
Expand All @@ -43,7 +43,7 @@ jobs:
name: gauge-ts
path: ./artifacts

sample-project:
e2e-test:
needs: build-artifacts
strategy:
matrix:
Expand All @@ -52,34 +52,27 @@ 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
path: ./artifacts

- 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

0 comments on commit 4277b40

Please sign in to comment.