ci: use merged TypeDoc to only update docs for published packages #52
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run tests | |
on: | |
push: | |
branches-ignore: | |
- main | |
env: | |
PNPM_VERSION: "9.0.4" | |
NODE_VERSION: "18.17.0" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v3 | |
with: | |
version: "${{ env.PNPM_VERSION }}" | |
- uses: actions/setup-node@v4 | |
with: | |
cache: pnpm | |
node-version: "${{ env.NODE_VERSION }}" | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Run tests | |
run: pnpm test | |
# TODO add coverage using | |
# <https://github.com/marketplace/actions/code-coverage-summary> | |
# once nyc works again | |
check-build-files: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v3 | |
with: | |
version: "${{ env.PNPM_VERSION }}" | |
- uses: actions/setup-node@v4 | |
with: | |
cache: pnpm | |
node-version: "${{ env.NODE_VERSION }}" | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Run build | |
run: pnpm run -r build | |
check-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v3 | |
with: | |
version: "${{ env.PNPM_VERSION }}" | |
- uses: actions/setup-node@v4 | |
with: | |
cache: pnpm | |
node-version: "${{ env.NODE_VERSION }}" | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Generate docs for all packages | |
run: pnpm run -r typedoc |