Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions .github/workflows/healthcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,19 @@ jobs:
LT_USERNAME: ${{ secrets.LT_USERNAME }}
LT_ACCESS_KEY: ${{ secrets.LT_ACCESS_KEY }}
steps:
- uses: actions/checkout@v2
- name: Use Node.js 17.x
uses: actions/setup-node@v2
- uses: actions/checkout@v4
- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: 17.x
node-version: 18.x

- name: npm dependencies
run: npm install
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10

- name: pnpm dependencies
run: pnpm install

- name: Run test
run: npm run test
run: pnpm run test
28 changes: 18 additions & 10 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,31 @@ jobs:
if: startsWith(github.ref, 'refs/tags/prod-')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14
- run: npm install
node-version: 18.x
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- run: pnpm install

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 14
node-version: 18.x
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm run build
- run: npm publish --access public
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- run: pnpm install
- run: pnpm build
- run: pnpm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
37 changes: 22 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,31 @@ concurrency:
jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x]
env:
LT_USERNAME: ${{ secrets.LT_USERNAME }}
LT_ACCESS_KEY: ${{ secrets.LT_ACCESS_KEY }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: 18.x

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
node-version: ${{ matrix.node-version }}
version: 10

- name: Install dependencies
run: npm ci --ignore-scripts
run: pnpm install --frozen-lockfile

- name: Build
run: npm run build
run: pnpm build

- name: Test
run: npm run test
run: pnpm test

macos:
runs-on: macos-latest
Expand All @@ -47,18 +49,23 @@ jobs:
LT_ACCESS_KEY: ${{ secrets.LT_ACCESS_KEY }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Use Node.js 18.x
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: 18.x

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10

- name: Install dependencies
run: npm ci --ignore-scripts
run: pnpm install --frozen-lockfile

- name: Build
run: npm run build
run: pnpm run build

- name: Test
run: npm run test
run: pnpm run test
3 changes: 3 additions & 0 deletions .pnpmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
hoist-pattern[]=*eslint*
hoist-pattern[]=*prettier*
auto-install-peers=true
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -407,10 +407,10 @@ To get test names as scenario names for cucumber specific tests, simply add `use

## Steps to compile and publish
1. git clone this repository.
2. run "npm install"
3. run "npm run build"
2. run "pnpm install"
3. run "pnpm run build"
4. Steps to Publish: run "npm login"
5. run "npm publish --access public"
5. run "pnpm publish --access public"

----

Expand Down
Loading
Loading