Skip to content

Merge pull request #2 from dromzeh/fix/build-fail #4

Merge pull request #2 from dromzeh/fix/build-fail

Merge pull request #2 from dromzeh/fix/build-fail #4

Workflow file for this run

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