update README.md #22
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: Code Checks | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| concurrency: | |
| group: style-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| ui: | |
| name: "UI" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/dangerous-git-checkout | |
| - uses: ./.github/actions/pnpm-install | |
| - name: Types Check | |
| run: pnpm typecheck | |
| env: | |
| NODE_OPTIONS: --max-old-space-size=4096 | |
| - name: Prettier check | |
| run: pnpm prettier --check . | |
| - name: Lint | |
| run: pnpm lint | |
| api: | |
| name: "API" | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: . | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/dangerous-git-checkout | |
| - uses: ./.github/actions/go-setup | |
| with: | |
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
| - name: Check go.mod/go.sum to be consistent | |
| run: find . -name go.sum -exec make --always-make {} \; && git diff --exit-code | |
| - name: Go lint | |
| run: make lint |