Skip to content

Commit 0155a66

Browse files
Improves code quality checks (#28)
Enables automated code checks on pull requests to main branch, including linting and testing. This change aims to catch errors and inconsistencies early in the development process, ensuring higher code quality and maintainability.
1 parent 3452f4b commit 0155a66

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.github/workflows/code-check.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Code check
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
lint-and-test:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '22'
20+
cache: 'npm'
21+
22+
- name: Install dependencies
23+
run: npm install
24+
25+
- name: Run linter
26+
run: npm run lint
27+
28+
- name: Run tests
29+
run: npm test

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,5 @@ next-env.d.ts
4444
.*
4545
!.editorconfig
4646
!.env.example
47-
!.prettierrc
47+
!.prettierrc
48+
!.github

0 commit comments

Comments
 (0)