Skip to content

chore(deps-dev): Bump web-vitals from 0.2.4 to 4.2.3 #1404

chore(deps-dev): Bump web-vitals from 0.2.4 to 4.2.3

chore(deps-dev): Bump web-vitals from 0.2.4 to 4.2.3 #1404

Workflow file for this run

name: CI
on:
push:
branches:
- main
tags:
- '!*'
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
test:
name: Node ${{ matrix.node }} and ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: [18, 20]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
# https://github.com/nodejs/node-gyp#installation
- name: Use Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
# https://github.com/hargasinski/node-canvas/blob/e7abe64833d13ec96449c827b1e14befbdf3105d/.github/workflows/ci.yaml#L70
- name: "macOS dependencies"
if: matrix.os == 'macos-latest'
run: |
brew update
brew install pkg-config cairo pango libpng jpeg giflib librsvg
# https://github.com/hargasinski/node-canvas/blob/e7abe64833d13ec96449c827b1e14befbdf3105d/.github/workflows/ci.yaml#L25
- name: "GNU/Linux dependencies"
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt update
sudo apt install -y libcairo2-dev libjpeg-dev libpango1.0-dev libgif-dev librsvg2-dev
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
cache: yarn
node-version: ${{ matrix.node }}
check-latest: true
- name: Install Dependencies
run: yarn global add node-gyp && yarn install --frozen-lockfile
- name: Build Test Binary
run: yarn build-test-binary
- name: Build
run: yarn build
- name: Run Tests
run: yarn test
- name: Coverage
if: matrix.os == 'ubuntu-latest' && matrix.node == 20 # only run once
run: yarn test-coverage
- name: Maybe Release
if: matrix.os == 'ubuntu-latest' && matrix.node == 20 && github.event_name == 'push' && github.ref == 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN_ELEVATED }}
run: npx semantic-release@19.0.5