Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Quality checks

on:
push:
pull_request:

permissions:
contents: read

concurrency:
group: quality-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
quality:
name: Lint, format and type-check
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 9.1.0
run_install: false

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run quality check
run: pnpm quality

- name: Run lint
run: pnpm lint

- name: Check formatting
run: pnpm format:check
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,3 @@ yarn-error.log*

# typescript
*.tsbuildinfo
next-env.d.ts
16 changes: 8 additions & 8 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"bracketSpacing": true,
"endOfLine": "lf",
"printWidth": 80,
"semi": false,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "all"
}
"bracketSpacing": true,
"endOfLine": "lf",
"printWidth": 80,
"semi": false,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "all"
}
3 changes: 1 addition & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Contributing to Coding Bunker Website
# Contributing to Coding Bunker Website

Thank you for considering contributing to Coding Bunker Website! We welcome all contributions, big and small. Please follow the guidelines below to get started.

Expand All @@ -9,5 +9,4 @@ Thank you for considering contributing to Coding Bunker Website! We welcome all
3. **Create a Branch**: Create a new branch for your feature or bug fix.
- Branch naming convention: `feature/[feature-name]` or `bugfix/[issue-number]-[short-description]`


Thank you for contributing!
5 changes: 5 additions & 0 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
"build": "next build",
"start": "next start",
"lint": "next lint",
"format:check": "prettier --check .",
"quality": "tsc --noEmit",
"init:tailwind": "tailwindcss init tailwindcss.config.ts"
},
"engines": {
Expand All @@ -34,7 +36,8 @@
"eslint": "^8.57.1",
"eslint-config-next": "14.2.23",
"postcss": "^8.5.1",
"prettier": "3.4.2",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.3"
}
}
}
Loading
Loading