Skip to content
Merged
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
18 changes: 17 additions & 1 deletion .github/workflows/sanity-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
commit_sha:
description: 'The full commit id to build'
required: true
package_url:
description: 'Staging package url'
required: false

jobs:
comment-run:
Expand All @@ -17,12 +20,13 @@ jobs:
fail-fast: false
max-parallel: 3
matrix:
node: ['14', '16', '18']
node: ['14', '16', '18', '20']
os: [ macos-latest, windows-latest, ubuntu-latest ]
name: NodeJS Playwright Repo ${{ matrix.node }} - ${{ matrix.os }} Sample
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
PACKAGE_URL: ${{ github.event.inputs.package_url }}

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -52,6 +56,18 @@ jobs:
with:
node-version: ${{ matrix.node }}

- name: Setup staging npm package
if: ${{ github.event.inputs.package_url != '' }}
run: |
echo 'Publishing tar.gz to local registry'
curl -o staging_package.tgz "$PACKAGE_URL"
npm install verdaccio -g
verdaccio &
npm config set registry http://localhost:4873
npm install -g npm-cli-adduser && npm-cli-adduser -u dummy -p dummy -e dummy@gmail.com -r http://localhost:4873
npm publish staging_package.tgz --registry http://localhost:4873/
shell: bash

- name: Install dependencies
run: npm install

Expand Down