mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 23:49:38 +00:00
limit action run on path glob
This commit is contained in:
14
.github/workflows/lint_js.yml
vendored
14
.github/workflows/lint_js.yml
vendored
@@ -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
|
||||
|
||||
10
.github/workflows/lint_python.yml
vendored
10
.github/workflows/lint_python.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user