Skip to content

Commit 2ac3ec3

Browse files
chore: break the CI in three steps
1 parent 317785a commit 2ac3ec3

7 files changed

Lines changed: 87 additions & 8 deletions

File tree

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Conventional Commits
1+
name: Build
22

33
on:
44
push:
@@ -23,8 +23,4 @@ jobs:
2323

2424
- run: pnpm install
2525

26-
- run: pnpm lint
27-
28-
- run: pnpm test:ci
29-
3026
- run: pnpm build

.github/workflows/lint.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches: [main, develop]
6+
pull_request:
7+
8+
jobs:
9+
lint:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- uses: pnpm/action-setup@v3
16+
with:
17+
version: 8
18+
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
cache: "pnpm"
23+
24+
- run: pnpm install
25+
26+
- run: pnpm lint
27+
28+
- run: pnpm format:check

.github/workflows/test.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [main, develop]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- uses: pnpm/action-setup@v3
16+
with:
17+
version: 8
18+
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
cache: "pnpm"
23+
24+
- run: pnpm install
25+
26+
- run: pnpm test:ci

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4-
npm test
4+
# npm test
55
npx lint-staged

package-lock.json

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
"lint": "eslint .",
1010
"test": "jest",
1111
"test:watch": "jest --watch",
12-
"test:ci": "jest --ci --runInBand",
12+
"test:ci": "jest --ci --passWithNoTests",
1313
"commit": "git cz",
1414
"prepare": "husky install",
15-
"format": "prettier --write ."
15+
"format": "prettier --write .",
16+
"format:check": "prettier --check ."
1617
},
1718
"lint-staged": {
1819
"*.{ts,tsx,js,jsx}": [
@@ -45,6 +46,7 @@
4546
"eslint": "^9",
4647
"eslint-config-next": "16.2.1",
4748
"husky": "^8.0.0",
49+
"prettier": "^3.8.1",
4850
"tailwindcss": "^4",
4951
"typescript": "^5"
5052
}

pnpm-lock.yaml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)