-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: improve GitHub Actions workflow descriptions (#57)
* ci: simplify and standardize pipelines 1. Upgrade node version in release.yml 2. Merge 'ci.yml' and 'code-quality.yml' 3. Remove node-cache since the project is not complex enough for it to be required * ci: improve GitHub Actions workflow descriptions - Made workflow and job names more descriptive - Added detailed step descriptions for better visibility in GitHub UI - Clarified tools being used (Biome, TypeScript) in step names - Improved build step description to indicate production build
- Loading branch information
Showing
3 changed files
with
27 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,47 @@ | ||
name: CI | ||
name: Build, Test & Quality Checks | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
branches: [main] | ||
pull_request: | ||
branches: | ||
- main | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
name: Test & Build | ||
|
||
quality: | ||
name: Code Quality & Package Build | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [22.x] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js ${{ matrix.node-version }} | ||
- name: Set up Node.js environment (v${{ matrix.node-version }}) | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: "npm" | ||
cache: 'npm' | ||
|
||
- name: Display Node.js version | ||
run: node -v | ||
- name: Install Biome.js formatter and linter | ||
uses: biomejs/setup-biome@v2 | ||
with: | ||
version: latest | ||
|
||
- name: Install dependencies | ||
- name: Install project dependencies | ||
run: npm ci | ||
|
||
- name: Cache node_modules | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- name: Run linting | ||
run: npm run lint | ||
- name: Verify code style and formatting (Biome) | ||
run: | | ||
npm run lint | ||
npm run format | ||
- name: Run type-checking | ||
- name: Verify TypeScript types | ||
run: npm run check-types | ||
|
||
- name: Run tests | ||
- name: Run unit and integration tests | ||
run: npm test | ||
|
||
- name: Build the package | ||
- name: Build production package | ||
run: npm run build |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters