Skip to content

Commit

Permalink
Update ci.yml to trigger on PRs and enhance naming
Browse files Browse the repository at this point in the history
- 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
blakmatrix committed Jan 4, 2024
1 parent 206f4a7 commit 62c2e08
Showing 1 changed file with 31 additions and 17 deletions.
48 changes: 31 additions & 17 deletions .github/workflows/ci.yml
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

0 comments on commit 62c2e08

Please sign in to comment.