Skip to content

Commit

Permalink
Filter the paths to be included in the CI process
Browse files Browse the repository at this point in the history
  • Loading branch information
BowTiedRadone committed Dec 27, 2024
1 parent ea28264 commit c62552c
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,21 @@ on:
push:
branches:
- master
paths:
- "**.ts"
- "**.js"
- "**.json"
- "example/**"
- ".github/workflows/**"
pull_request:
branches:
- master
paths:
- "**.ts"
- "**.js"
- "**.json"
- "example/**"
- ".github/workflows/**"

jobs:
test:
Expand All @@ -16,16 +28,16 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [20.18.0]
node: [22, 20, 18]

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: ${{ matrix.node }}

- name: Install dependencies
run: npm ci
Expand Down

0 comments on commit c62552c

Please sign in to comment.