Skip to content

Commit

Permalink
Merge branch 'main' into patch/placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
bdbch authored Feb 18, 2023
2 parents 9bd8981 + 5c9c850 commit 5e1b751
Show file tree
Hide file tree
Showing 400 changed files with 13,939 additions and 6,705 deletions.
243 changes: 124 additions & 119 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,50 +23,49 @@ jobs:
node-version: [16]

steps:

- uses: actions/checkout@v3.0.2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.5.1
with:
node-version: ${{ matrix.node-version }}

- name: Load cached dependencies
uses: actions/cache@v3.0.11
id: cache
with:
path: |
**/node_modules
/home/runner/.cache/Cypress
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}

- name: Install dependencies
id: install-dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm install

# - name: Fix code style linting errors
# id: lint-fix
# run: npm run lint:fix
# continue-on-error: true
#
# - name: Commit fixed linting errors
# id: commit
# uses: stefanzweifel/git-auto-commit-action@v4
# with:
# commit_message: "ci: fix code style linting errors"

- name: Lint code
id: lint
run: npm run lint

- name: Send Slack notifications
uses: act10ns/slack@v1
if: failure()
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
channel: '#tiptap-notifications'
- uses: actions/checkout@v3.3.0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.6.0
with:
node-version: ${{ matrix.node-version }}

- name: Load cached dependencies
uses: actions/cache@v3.2.5
id: cache
with:
path: |
**/node_modules
/home/runner/.cache/Cypress
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}

- name: Install dependencies
id: install-dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm install

# - name: Fix code style linting errors
# id: lint-fix
# run: npm run lint:fix
# continue-on-error: true
#
# - name: Commit fixed linting errors
# id: commit
# uses: stefanzweifel/git-auto-commit-action@v4
# with:
# commit_message: "ci: fix code style linting errors"

- name: Lint code
id: lint
run: npm run lint

- name: Send Slack notifications
uses: act10ns/slack@v2
if: failure()
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
channel: '#tiptap-notifications'

test:
runs-on: ubuntu-latest
Expand All @@ -79,48 +78,55 @@ jobs:
node-version: [16]

steps:

- uses: actions/checkout@v3.0.2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.5.1
with:
node-version: ${{ matrix.node-version }}

- name: Run tests with Cypress
id: cypress
uses: cypress-io/github-action@v4.2.0
with:
cache-key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
start: npm run start
wait-on: 'http://localhost:3000'
project: ./tests
browser: chrome
quiet: true

- name: Export screenshots (on failure only)
uses: actions/upload-artifact@v3.1.0
if: failure()
with:
name: cypress-screenshots
path: tests/cypress/screenshots
retention-days: 7

- name: Export screen recordings (on failure only)
uses: actions/upload-artifact@v3.1.0
if: failure()
with:
name: cypress-videos
path: tests/cypress/videos
retention-days: 7

- name: Send Slack notifications
uses: act10ns/slack@v1
if: failure()
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
channel: '#tiptap-notifications'
- uses: actions/checkout@v3.3.0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.6.0
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
id: install-dependencies
run: npm install

- name: Try to build the packages
id: build-packages
run: npm run build:pm

- name: Run tests with Cypress
id: cypress
uses: cypress-io/github-action@v5.0.8
with:
cache-key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
start: npm run start
wait-on: 'http://localhost:3000'
project: ./tests
browser: chrome
quiet: true

- name: Export screenshots (on failure only)
uses: actions/upload-artifact@v3.1.2
if: failure()
with:
name: cypress-screenshots
path: tests/cypress/screenshots
retention-days: 7

- name: Export screen recordings (on failure only)
uses: actions/upload-artifact@v3.1.2
if: failure()
with:
name: cypress-videos
path: tests/cypress/videos
retention-days: 7

- name: Send Slack notifications
uses: act10ns/slack@v2
if: failure()
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
channel: '#tiptap-notifications'

build:
runs-on: ubuntu-latest
Expand All @@ -135,36 +141,35 @@ jobs:
node-version: [16]

steps:

- uses: actions/checkout@v3.0.2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.5.1
with:
node-version: ${{ matrix.node-version }}

- name: Load cached dependencies
uses: actions/cache@v3.0.11
id: cache
with:
path: |
**/node_modules
/home/runner/.cache/Cypress
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}

- name: Install dependencies
id: install-dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm install

- name: Try to build the packages
id: build-packages
run: npm run build:ci

- name: Send Slack notifications
uses: act10ns/slack@v1
if: failure()
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
channel: '#tiptap-notifications'
- uses: actions/checkout@v3.3.0

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.6.0
with:
node-version: ${{ matrix.node-version }}

- name: Load cached dependencies
uses: actions/cache@v3.2.5
id: cache
with:
path: |
**/node_modules
/home/runner/.cache/Cypress
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}

- name: Install dependencies
id: install-dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm install

- name: Try to build the packages
id: build-packages
run: npm run build:ci

- name: Send Slack notifications
uses: act10ns/slack@v2
if: failure()
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
channel: '#tiptap-notifications'
27 changes: 27 additions & 0 deletions .github/workflows/docsearch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Automate, customize, and execute your software development workflows right in your repository with GitHub Actions.
# Documentation: https://docs.github.com/en/actions

name: docsearch

on:
workflow_dispatch:
schedule:
- cron: '5 0 * * *'

jobs:

docsearch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.3.0

- name: Run DocSearch Scraper
shell: bash
run: |
docker run \
-e TYPESENSE_API_KEY=${{ secrets.TYPESENSE_API_KEY }} \
-e TYPESENSE_HOST="${{ secrets.TYPESENSE_HOST }}" \
-e TYPESENSE_PORT="${{ secrets.TYPESENSE_PORT }}" \
-e TYPESENSE_PROTOCOL="${{ secrets.TYPESENSE_PROTOCOL }}" \
-e CONFIG="$(cat docsearch.config.json | jq -r tostring)" \
typesense/docsearch-scraper
7 changes: 4 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@

name: Publish to NPM

# on github release published
# on github release published or workflow_dispatch
on:
workflow_dispatch:
release:
types: [published]

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3.5.1
- uses: actions/checkout@v3.3.0
- uses: actions/setup-node@v3.6.0
with:
node-version: 16
registry-url: https://registry.npmjs.org/
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dist
.env
.env.*
.npmrc
.eslintcache

# Log files
npm-debug.log*
Expand All @@ -26,3 +27,7 @@ tests/cypress/videos
/tests/cypress/screenshots
# Ignore intellij project files
.idea

# packaged files
packages/**/*.tgz
demos/*.tgz
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,6 @@
"suggestion",
"vue-2",
"vue-3"
]
],
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
}
Loading

0 comments on commit 5e1b751

Please sign in to comment.