8000 fix up lint file similarly · pyscript/pyscript@8ec298d · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8ec298d

Browse files
committed
fix up lint file similarly
1 parent be07ec8 commit 8ec298d

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ on:
55
branches: main
66
paths:
77
- pyscriptjs/**
8+
- .github/workflows/** # Test that workflows work when changed
89
pull_request: # Run on any PR that modifies files in pyscriptjs/
10+
paths:
11+
- pyscriptjs/**
12+
- .github/workflows/**
13+
914

1015
jobs:
1116
build:

.github/workflows/lint.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
name: Lint
22

33
on:
4-
push:
4+
push: # Only run on merges into master that modify files under pyscriptjs/
55
branches: main
6-
pull_request:
7-
branches: '*'
6+
paths:
7+
- pyscriptjs/**
8+
- .github/workflows/** # Test that workflows work when changed
9+
pull_request: # Run on any PR that modifies files in pyscriptjs/
10+
paths:
11+
- pyscriptjs/**
12+
- .github/workflows/**
813

914
jobs:
1015
build:
1116
runs-on: ubuntu-latest
17+
defaults:
18+
run:
19+
working-directory: ./pyscriptjs
1220
steps:
1321
- name: Checkout
1422
uses: actions/checkout@v3
@@ -30,9 +38,7 @@ jobs:
3038
${{ runner.os }}-
3139
- name: Install dependencies
3240
run: |
33-
cd pyscriptjs
3441
npm install
3542
- name: Run linter
3643
run: |
37-
cd pyscriptjs
3844
npm run lint

0 commit comments

Comments
 (0)
0