chore: fixed and upgraded project setup and ci #98
Workflow file for this run
This file contains hidden or 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: Validate JS | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - ".github/workflows/validate-js.yml" | |
| - "src/**" | |
| - "*.json" | |
| - "*.js" | |
| - "*.lock" | |
| - "example/src/**" | |
| - "example/*.json" | |
| - "example/*.js" | |
| - "example/*.lock" | |
| - "example/*.tsx" | |
| pull_request: | |
| paths: | |
| - ".github/workflows/validate-js.yml" | |
| - "src/**" | |
| - "*.json" | |
| - "*.js" | |
| - "*.lock" | |
| - "example/src/**" | |
| - "example/*.json" | |
| - "example/*.js" | |
| - "example/*.lock" | |
| - "example/*.tsx" | |
| jobs: | |
| compile: | |
| name: Compile JS (tsc) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Enable corepack and set yarn to latest stable | |
| shell: bash | |
| run: | | |
| corepack enable | |
| yarn set version stable | |
| - name: Install reviewdog | |
| uses: reviewdog/action-setup@v1 | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| - name: Install node_modules (example/) | |
| run: yarn --cwd example install --immutable | |
| - name: Run TypeScript # Reviewdog tsc errorformat: %f:%l:%c - error TS%n: %m | |
| run: | | |
| yarn typescript | reviewdog -name="tsc" -efm="%f(%l,%c): error TS%n: %m" -reporter="github-pr-review" -filter-mode="nofilter" -fail-on-error -tee | |
| env: | |
| REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| lint: | |
| name: Lint / Format JS | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Enable corepack and set yarn to latest stable | |
| shell: bash | |
| run: | | |
| corepack enable | |
| yarn set version stable | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| - name: Install node_modules (example/) | |
| run: yarn --cwd example install --immutable | |
| - name: Run Biome with auto-fix | |
| run: yarn lint | |
| - name: Verify no files have changed after auto-fix | |
| run: git diff --exit-code HEAD |