Skip to content

chore(deps): update all non-major dependencies #2531

chore(deps): update all non-major dependencies

chore(deps): update all non-major dependencies #2531

Workflow file for this run

name: CI Build
on:
# Trigger the workflow on push or pull request,
# but only for the master branch on Push and any branches on PR
push:
branches:
- master
- next
pull_request:
branches:
- "**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
run:
name: Node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [20]
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
fetch-depth: 3
- name: Set NodeJS
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 9
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- uses: pnpm/action-setup@v3
with:
version: 9
run_install: true
- run: pnpm --version
- name: Build Plugin
run: pnpm build
- name: Lint
run: pnpm lint
- name: Run Jest unit tests
if: ${{ !contains(github.event.head_commit.message, 'chore(release)') }}
run: pnpm test:ci
- name: Upload Jest coverage to Codecov
if: ${{ !contains(github.event.head_commit.message, format('chore{0} release', ':')) }}
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: test/jest-coverage
verbose: true
- name: Website Dev Build (served for Cypress)
run: pnpm build:demo
- name: Run Cypress E2E tests
uses: cypress-io/github-action@v6
with:
install: false
# working-directory: packages/dnd
start: pnpm serve:demo
wait-on: "http://localhost:9000"
config-file: test/cypress.config.ts
browser: chrome
record: false
env:
# pass the Dashboard record key as an environment variable
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# pass GitHub token to allow accurately detecting a build vs a re-run build
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Cypress_extended: true
# deploy (re-publish) GitHub demo page with a Prod build but only when merging to "master" branch
# and the commit message contains the text "chore: release"
- name: Deploy to gh-pages
if: |
github.ref == 'refs/heads/master' &&
(contains(github.event.head_commit.message, format('chore{0} release', ':')) || contains(github.event.head_commit.message, '[refresh gh-pages]'))
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./packages/demo/website