Skip to content

chore(deps): update dependency typedoc to v0.25.13 #441

chore(deps): update dependency typedoc to v0.25.13

chore(deps): update dependency typedoc to v0.25.13 #441

Workflow file for this run

name: Test and deploy
on:
push:
branches:
- 'main'
- 'beta'
pull_request:
branches:
- '**'
jobs:
build:
name: Build on Node.js ${{ matrix.node }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node: [18]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm run build
benchmark:
name: Benchmark on Node.js ${{ matrix.node }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node: [18]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm run build
- run: node benchmark/index.js | tee benchmark/output.txt
- name: Download previous benchmark data
uses: actions/cache@v4
with:
path: ./cache
key: ${{ matrix.os }}-node${{ matrix.node }}-benchmark
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
tool: 'benchmarkjs'
output-file-path: benchmark/output.txt
external-data-json-path: ./cache/benchmark-data.json
summary-always: true
comment-always: true
github-token: ${{ secrets.GITHUB_TOKEN }}
test_unit:
name: Unit Test on Node.js ${{ matrix.node }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node: [18, 16]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm run test
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
lint:
name: Lint on Node.js ${{ matrix.node }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node: [18]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: '18.x'
- run: npm ci
- run: npm run lint
docs:
environment:
name: docs
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [18]
os: [ubuntu-latest]
needs: [build, benchmark, test_unit, lint]
if: github.head_ref == 'released'
permissions:
pages: write
id-token: write
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: '18.x'
- run: npm ci
- run: npm run typedoc
- name: Upload docs to artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/
- name: Deploy docs to GitHub Pages
id: docs
uses: actions/deploy-pages@v4