Skip to content

Commit c55a69a

Browse files
authored
ci: Reduce runs (#1782)
1 parent d978edc commit c55a69a

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ on:
55
branches:
66
- master
77
- next
8-
- staging
9-
- trying
108
pull_request:
119
branches:
1210
- master
@@ -31,6 +29,13 @@ jobs:
3129
with:
3230
node-version: ${{ matrix.node-version }}
3331

32+
- uses: dorny/paths-filter@v2
33+
id: filter
34+
with:
35+
filters: |
36+
cli:
37+
- 'packages/cli/**'
38+
3439
- uses: actions/cache@v3
3540
id: gittar-cache
3641
with:
@@ -48,19 +53,11 @@ jobs:
4853
restore-keys: ${{ runner.os }}-yarn-
4954

5055
- run: yarn install --frozen-lockfile
51-
- name: test
56+
57+
- name: test:cli
58+
if: steps.filter.outputs.cli == 'true'
5259
env:
5360
CI: true
5461
WITH_LOG: true
5562
LIGHTHOUSE_CHROMIUM_PATH: 'which google-chrome-stable'
56-
run: npm run test
57-
58-
ci-success:
59-
name: ci
60-
if: ${{ success() }}
61-
needs:
62-
- test
63-
runs-on: ubuntu-latest
64-
steps:
65-
- name: CI succeeded
66-
run: exit 0
63+
run: yarn test:cli

0 commit comments

Comments
 (0)