Skip to content

Add workflow badge #415

Add workflow badge

Add workflow badge #415

Workflow file for this run

name: NodeJS with Webpack
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [lts/*, latest]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 'true'
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 9
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Build
run: |
pnpm install
pnpm run build
- name: Perform e2e tests with Headful Puppeteer
uses: HrBDev/puppeteer-headful@674b338ea1c25f0ca89743e1365cd8c8eb63afcb
env:
CI: 'true'
with:
args: npm test