Skip to content

Commit 53fbc42

Browse files
committed
👷(lint-and-format) apply pre-commit rules to check files linting and format
1 parent f28ee84 commit 53fbc42

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

‎.github/workflows/pr-on-main.yml‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,19 @@ jobs:
4545
fi
4646
4747
echo "✅ All commits have valid format"
48+
lint-and-format:
49+
name: Lint and Format Check
50+
runs-on: ubuntu-latest
51+
steps:
52+
- uses: actions/checkout@v4
53+
- name: Build dev image
54+
run: make build-dev
55+
- name: Run pre-commit hooks
56+
run: ./bin/git-pre-commit-hook
4857
build:
4958
name: Build All Services
5059
runs-on: ubuntu-latest
5160
steps:
5261
- uses: actions/checkout@v4
5362
- name: Build all services
5463
run: make build
55-
lint:
56-
name: Lint All Services
57-
runs-on: ubuntu-latest
58-
steps:
59-
- uses: actions/checkout@v4
60-
- name: Build dev image
61-
run: make build-dev
62-
- name: Lint all services
63-
run: make lint

‎.github/workflows/push-on-main.yml‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,19 @@ jobs:
4646
fi
4747
4848
echo "✅ Merged commit format is valid"
49+
lint-and-format:
50+
name: Lint and Format Check
51+
runs-on: ubuntu-latest
52+
steps:
53+
- uses: actions/checkout@v4
54+
- name: Build dev image
55+
run: make build-dev
56+
- name: Run pre-commit hooks
57+
run: ./bin/git-pre-commit-hook
4958
build:
5059
name: Build All Services
5160
runs-on: ubuntu-latest
5261
steps:
5362
- uses: actions/checkout@v4
5463
- name: Build all services
5564
run: make build
56-
lint:
57-
name: Lint All Services
58-
runs-on: ubuntu-latest
59-
steps:
60-
- uses: actions/checkout@v4
61-
- name: Build dev image
62-
run: make build-dev
63-
- name: Lint all services
64-
run: make lint

0 commit comments

Comments
 (0)