Skip to content

chore(deps): update dependency @rollup/plugin-terser to v0.4.4 #681

chore(deps): update dependency @rollup/plugin-terser to v0.4.4

chore(deps): update dependency @rollup/plugin-terser to v0.4.4 #681

Workflow file for this run

name: Test widget
on:
push:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
workflow_call:
env:
PKG_DIR: "packages/widget"
jobs:
nodejs_test:
runs-on: ubuntu-latest
container: mcr.microsoft.com/playwright:v1.40.1
timeout-minutes: 20
strategy:
matrix:
node-version: [18.14.0]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('${{env.PKG_DIR}}/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: |
cd ${{env.PKG_DIR}}
pnpm install;
- name: Verify builds
run: |
cd ${{env.PKG_DIR}}
pnpm run build:deps ;
- name: Run Playwright tests
run: |
cd ${{env.PKG_DIR}}
HOME=/root pnpm run test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: ${{env.PKG_DIR}}/playwright-report/
retention-days: 30