From c62552ce35d8fa6f9b2d20b7afc174b87a39cfbd Mon Sep 17 00:00:00 2001 From: BowTiedRadone Date: Fri, 27 Dec 2024 18:25:56 +0200 Subject: [PATCH] Filter the paths to be included in the CI process --- .github/workflows/ci.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 238572e..f0297de 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -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