Skip to content

Commit 15cc212

Browse files
committed
chore(ci): rename lint job to format-check and clarify comments.
1 parent 142a6ca commit 15cc212

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name: CI
22

33
on:
4-
# Run workflow when changes are pushed to main branches:
4+
# Run workflow when changes are pushed to main branch:
55
push:
66
branches:
77
- main
88

9-
# Run workflow for pull requests targeting main branches:
9+
# Run workflow for pull requests targeting main branch:
1010
pull_request:
1111
branches:
1212
- main
@@ -19,9 +19,9 @@ permissions:
1919
contents: read
2020

2121
jobs:
22-
# 1st job: lint
23-
# This job verifies code formatting and code quality:
24-
lint:
22+
# 1st job: format-check
23+
# This job verifies that the project files follow the configured Prettier formatting rules:
24+
format-check:
2525
# Use ubuntu-latest runner for a consistent Linux environment:
2626
runs-on: ubuntu-latest
2727

@@ -42,13 +42,13 @@ jobs:
4242
- name: Install dependencies
4343
run: npm ci
4444

45-
# Step 4: Verify Prettier formatting:
46-
# Fails if files are not correctly formatted.
45+
# Step 4: Check Prettier formatting:
46+
# Fails if files do not match the project's formatting rules.
4747
- name: Check Prettier formatting
4848
run: npm run prettier-check
4949

5050
# 2nd job: type-check
51-
# This job verifies Astro and TypeScript correctness:
51+
# This job verifies Astro files and TypeScript correctness:
5252
type-check:
5353
# Use ubuntu-latest runner:
5454
runs-on: ubuntu-latest
@@ -58,24 +58,24 @@ jobs:
5858
- name: Checkout
5959
uses: actions/checkout@v7
6060

61-
# Step 2: Setup Node.js:
61+
# Step 2: Setup Node.js environment:
6262
- name: Setup Node.js
6363
uses: actions/setup-node@v7
6464
with:
6565
node-version: 22
6666
cache: 'npm'
6767

68-
# Step 3: Install dependencies:
68+
# Step 3: Install project dependencies:
6969
- name: Install dependencies
7070
run: npm ci
7171

7272
# Step 4: Run Astro diagnostics:
73-
# Checks Astro files, TypeScript errors and component issues.
73+
# Detects TypeScript errors, invalid Astro components and project issues.
7474
- name: Run Astro type check
7575
run: npm run astro-check
7676

7777
# 3rd job: build
78-
# This job verifies that the production website can be generated:
78+
# This job verifies that the website can be successfully generated for production:
7979
build:
8080
# Use ubuntu-latest runner:
8181
runs-on: ubuntu-latest
@@ -85,18 +85,18 @@ jobs:
8585
- name: Checkout
8686
uses: actions/checkout@v7
8787

88-
# Step 2: Setup Node.js:
88+
# Step 2: Setup Node.js environment:
8989
- name: Setup Node.js
9090
uses: actions/setup-node@v7
9191
with:
9292
node-version: 22
9393
cache: 'npm'
9494

95-
# Step 3: Install dependencies:
95+
# Step 3: Install project dependencies:
9696
- name: Install dependencies
9797
run: npm ci
9898

99-
# Step 4: Generate production website:
100-
# Ensures Astro can successfully compile the project.
99+
# Step 4: Build production website:
100+
# Ensures Astro can compile the project and generate the final output.
101101
- name: Build Astro website
102102
run: npm run build

0 commit comments

Comments
 (0)