limit action run on path glob

This commit is contained in:
Simon 2024-05-21 16:51:06 +02:00
parent 4a49d70b17
commit 91f9351502
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
2 changed files with 19 additions and 5 deletions

View File

@ -1,16 +1,22 @@
name: lint_js
on: [pull_request, push]
on:
push:
paths:
- '**/*.js'
pull_request:
paths:
- '**/*.js'
jobs:
check:
name: lint_js
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '16'
node-version: '22'
- run: npm ci
- run: npm run lint
- run: npm run format -- --check

View File

@ -1,5 +1,13 @@
name: lint_python
on: [pull_request, push]
on:
push:
paths:
- '**/*.py'
pull_request:
paths:
- '**/*.py'
jobs:
lint_python:
runs-on: ubuntu-latest