Skip to content

ci: 🎡 new Workflow for lint and type-check on PRs #10

ci: 🎡 new Workflow for lint and type-check on PRs

ci: 🎡 new Workflow for lint and type-check on PRs #10

Workflow file for this run

name: Lint and Type Check - Open PR
on:
pull_request:
types: [opened, synchronize, reopened]
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Check Linting
run: pnpm lint-ci
type-check:
needs: lint
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Check Linting
run: pnpm type-check-ci