Merge pull request #2 from dromzeh/fix/build-fail #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: Check formatting | |
on: | |
pull_request: | |
branches: | |
- '*' | |
push: | |
branches: | |
- '*' | |
concurrency: | |
group: ${{ github.job }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
prettier: | |
name: Prettier formatting | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: latest | |
run_install: false | |
- name: Install dependencies | |
run: pnpm install | |
- name: Prettier check | |
run: pnpm run prettier:check | |
typecheck: | |
name: TypeScript type checking | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: latest | |
run_install: false | |
- name: Install dependencies | |
run: pnpm install | |
- name: TypeScript type checking | |
run: pnpm run typecheck |