Skip to content

Commit 1355590

Browse files
authored
chore: reduce redundant CI runs (#1816)
* [chore] reduce redundant CI runs * chore: fix knip command
1 parent 9b7df08 commit 1355590

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ jobs:
8686
run: pnpm install
8787

8888
- name: Check for unused things
89-
run: pnpm run knip
89+
run: pnpm run lint:knip

.github/workflows/tests.yaml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,27 @@
22
name: Tests
33

44
on:
5+
push:
6+
branches:
7+
- master
8+
paths:
9+
- ".github/workflows/tests.yaml"
10+
- "packages/**"
11+
- "!packages/directory/**"
12+
- "!packages/codemod/**"
13+
- "scripts/**"
14+
pull_request:
15+
paths:
16+
- ".github/workflows/tests.yaml"
17+
- "packages/**"
18+
- "!packages/directory/**"
19+
- "!packages/codemod/**"
20+
- "scripts/**"
521
workflow_dispatch:
622
inputs:
723
all_versions:
824
description: Run tests against all versions
925
type: boolean
10-
push:
11-
pull_request:
1226

1327
permissions:
1428
# AWS

0 commit comments

Comments
 (0)