Skip to content

grapheme: Add splitGraphemes() utility #244

grapheme: Add splitGraphemes() utility

grapheme: Add splitGraphemes() utility #244

Workflow file for this run

name: Integration
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build:
name: Checking build
runs-on: ubuntu-24.04
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- name: Install Dependencies
run: yarn install --immutable
- name: Build
run: yarn build
test:
name: Running tests
runs-on: ubuntu-24.04
env:
PREBUILT_BINARY: prebuilt/node-v24.0.0-pre-linux-x64_icu76.1
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- name: Install Dependencies
run: yarn install --immutable
- uses: actions/cache@v4
id: cache-prebuilt-node
with:
key: ${{ env.PREBUILT_BINARY }}
path: ${{ env.PREBUILT_BINARY }}
- name: Install prebuilt Node.js with custom ICU
if: steps.cache-prebuilt-node.cache-hit != 'true'
run: |
mkdir -p "$(dirname $PREBUILT_BINARY)"
curl -fsSL -o "$PREBUILT_BINARY" \
"https://github-actions-assets.cometkim.dev/$PREBUILT_BINARY"
chmod +x "$PREBUILT_BINARY"
- name: Execute Tests
run: |
$PREBUILT_BINARY \
--test --test-reporter spec --test-reporter-destination=stdout \
--experimental-test-coverage --test-reporter=lcov --test-reporter-destination=lcov.info
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: cometkim/unicode-segmenter
file: lcov.info