Skip to content

Release 2024-12-10 15:39:29 +0900 #118

Release 2024-12-10 15:39:29 +0900

Release 2024-12-10 15:39:29 +0900 #118

Workflow file for this run

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