two ways to make docs html and markdown #110
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: static checks | |
on: | |
pull_request: | |
branches: | |
- main | |
- develop | |
types: [opened, synchronize, reopened, closed] | |
jobs: | |
detect-changes: | |
runs-on: ubuntu-latest | |
timeout-minutes: 3 | |
permissions: | |
pull-requests: read | |
outputs: | |
root: ${{ steps.filter.outputs.root }} | |
core: ${{ steps.filter.outputs.core }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
filters: | | |
root: | |
- '.github/**' | |
- 'docs/**' | |
- 'README.md' | |
- 'package.json' | |
- 'yarn.lock' | |
core: | |
- 'packages/core/**' | |
check-root: | |
needs: detect-changes | |
if: ${{ needs.detect-changes.outputs.root == 'true' }} | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./ | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/install-dependencies | |
- name: Format | |
run: yarn run format:dry-run .github docs README.md | |
check-core: | |
needs: detect-changes | |
if: ${{ needs.detect-changes.outputs.core == 'true' }} | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./packages/core | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/install-dependencies | |
- name: Compile | |
run: yarn run compile | |
- name: Lint | |
run: yarn run lint:dry-run | |
- name: Format | |
run: yarn run format:dry-run | |
- name: Run tests | |
run: yarn run test |