Skip to content

Commit 51f75bd

Browse files
committed
ci: improve pipeline execution
1 parent 5f77542 commit 51f75bd

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/pr-test.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1-
name: PR Test
1+
name: CI Test
22

33
on:
4+
push:
5+
branches: [ main ]
46
pull_request:
57
branches: [ main ]
68

79
jobs:
810
test:
911
name: Test on ${{ matrix.os }} with Node ${{ matrix.node-version }}
1012
runs-on: ${{ matrix.os }}
11-
fail-fast: false
1213

1314
strategy:
1415
matrix:
1516
os: [ubuntu-latest, windows-latest, macOS-latest]
16-
node-version: [18.x, 20.x, 22.x, 24.x]
17+
node-version: [18.x, 20.x, 22.x, 24.x]
18+
fail-fast: false
1719

1820
steps:
1921
- uses: actions/checkout@v4
@@ -33,11 +35,11 @@ jobs:
3335
- name: Type check
3436
run: npm run type:check
3537

36-
- name: Build
37-
run: npm run build
38-
3938
- name: Run tests
4039
run: npm run test:coverage
4140

41+
- name: Build
42+
run: npm run build
43+
4244
- name: Verify binary execution
4345
run: node dist/index.js

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ npm run type:check
9393
└── README.md # This file
9494
```
9595

96-
## CI/CD Pipeline
96+
## CI Pipeline
9797

98-
The project includes a GitHub Actions workflow for continuous integration that runs on pull requests to the main branch. The pipeline performs the following checks:
98+
The project includes a GitHub Actions workflow for continuous integration that runs on pull requests to the main branch and when commits are pushed to main. The pipeline performs the following checks in optimized order:
9999

100100
- Linting with StandardJS
101101
- Type checking with TypeScript

0 commit comments

Comments
 (0)