Some checks failed
build / lint (22) (push) Failing after 17s
build / test (22) (push) Failing after 8s
build / lint (23) (push) Failing after 2s
build / build (22) (push) Has been skipped
build / build (23) (push) Has been skipped
build / test (23) (push) Failing after 4s
docsearch / docsearch (push) Failing after 1s
110 lines
2.5 KiB
YAML
110 lines
2.5 KiB
YAML
# Automate, customize, and execute your software development workflows right in your repository with GitHub Actions.
|
|
# Documentation: https://docs.github.com/en/actions
|
|
|
|
name: build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- '**'
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [22, 23]
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v7
|
|
|
|
- uses: pnpm/action-setup@v6.0.10
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v7
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: 'pnpm'
|
|
|
|
- name: Set up npmrc
|
|
run: echo "@tiptap-cloud:registry=https://registry.tiptap.dev/" >> ~/.npmrc && echo "//registry.tiptap.dev/:_authToken=${{ secrets.TIPTAP_PRIVATE_REGISTRY_NPM_TOKEN }}" >> ~/.npmrc
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
# - name: Lint code
|
|
# run: pnpm lint
|
|
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
services:
|
|
redis:
|
|
image: redis
|
|
ports:
|
|
- 6379/tcp
|
|
options: --entrypoint redis-server
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [22, 23]
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v7
|
|
|
|
- uses: pnpm/action-setup@v6.0.10
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v7
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: 'pnpm'
|
|
|
|
- name: Set up npmrc
|
|
run: echo "@tiptap-cloud:registry=https://registry.tiptap.dev/" >> ~/.npmrc && echo "//registry.tiptap.dev/:_authToken=${{ secrets.TIPTAP_PRIVATE_REGISTRY_NPM_TOKEN }}" >> ~/.npmrc
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Run tests
|
|
run: pnpm test
|
|
env:
|
|
REDIS_HOST: localhost
|
|
REDIS_PORT: ${{ job.services.redis.ports[6379] }}
|
|
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: lint
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [22, 23]
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v7
|
|
|
|
- uses: pnpm/action-setup@v6.0.10
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v7
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: 'pnpm'
|
|
|
|
- name: Set up npmrc
|
|
run: echo "@tiptap-cloud:registry=https://registry.tiptap.dev/" >> ~/.npmrc && echo "//registry.tiptap.dev/:_authToken=${{ secrets.TIPTAP_PRIVATE_REGISTRY_NPM_TOKEN }}" >> ~/.npmrc
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Try to build the packages
|
|
run: pnpm build:packages
|