Updated README
& Issue Template
#4
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 }} | |
v1: ${{ steps.filter.outputs.v1 }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
filters: | | |
root: | |
- '.github/**' | |
- 'README.md' | |
v1: | |
- 'packages/v1/**' | |
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 README.md | |
check-v1: | |
needs: detect-changes | |
if: ${{ needs.detect-changes.outputs.v1 == 'true' }} | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./packages/v1 | |
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 |