build: prepare repository for typedoc enforcement #211
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: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
name: ci | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: { node-version: latest } | |
- name: Install dependencies | |
run: npm clean-install | |
env: { HUSKY: 0 } | |
- name: Build package | |
run: npm run build | |
- name: Build docs | |
run: npm run build:docs | |
- name: Audit dependencies | |
run: > | |
npm audit | |
npm audit signatures | |
- name: Audit linting | |
run: npm run lint | |
- name: Audit code coverage | |
run: npm run test:coverage | |
- name: Upload test results to Codecov | |
if: ${{ !cancelled() }} | |
uses: codecov/test-results-action@v1 | |
with: { token: "${{ secrets.CODECOV_TOKEN }}" } | |
- name: Upload coverage to Codecov | |
if: ${{ !cancelled() }} | |
uses: codecov/codecov-action@v5 | |
with: { token: "${{ secrets.CODECOV_TOKEN }}" } |