(feat) testing setup #123
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: PR Checks and Deploy | |
on: | |
pull_request: | |
branches: [dev, staging, prod] | |
types: [opened, synchronize, reopened] | |
jobs: | |
quality-checks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "18" | |
cache: "npm" | |
- name: Install dependencies | |
run: npm ci | |
- name: Prettier Check | |
run: npm run format:check | |
- name: ESLint Check | |
run: npx eslint . | |
- name: TypeScript Check | |
run: npx tsc --noEmit | |
- name: Build Check | |
run: npm run build |