-
-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ci.yml to trigger on PRs and enhance naming
- Extend workflow triggers to include pull requests. - Rename workflow to 'Build and Test Workflow' for better clarity. - Rename job to 'build-and-test' reflecting its comprehensive tasks.
- Loading branch information
1 parent
206f4a7
commit 62c2e08
Showing
1 changed file
with
31 additions
and
17 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,25 +1,39 @@ | ||
name: CI | ||
name: Build and Test Workflow | ||
|
||
on: | ||
push: | ||
branches: "**" | ||
branches: [ '**' ] | ||
pull_request: | ||
branches: [ '**' ] | ||
|
||
jobs: | ||
ci: | ||
build-and-test: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 8 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: npm | ||
cache-dependency-path: package-lock.json | ||
- run: npm ci | ||
- run: npm run lint | ||
- run: npm run test | ||
- run: npm run build | ||
- run: npm run docs:code | ||
env: | ||
NODE_OPTIONS: --max-old-space-size=4096 | ||
NO_COLOR: true | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: 'npm' | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
|
||
- name: Lint | ||
run: npm run lint | ||
|
||
- name: Test | ||
run: npm run test | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: Generate Documentation | ||
run: npm run docs:code | ||
env: | ||
NODE_OPTIONS: --max-old-space-size=4096 | ||
NO_COLOR: true |