Skip to content

Commit

Permalink
ci: Reduce runs (#1782)
Browse files Browse the repository at this point in the history
  • Loading branch information
rschristian authored Feb 2, 2023
1 parent d978edc commit c55a69a
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ on:
branches:
- master
- next
- staging
- trying
pull_request:
branches:
- master
Expand All @@ -31,6 +29,13 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
cli:
- 'packages/cli/**'
- uses: actions/cache@v3
id: gittar-cache
with:
Expand All @@ -48,19 +53,11 @@ jobs:
restore-keys: ${{ runner.os }}-yarn-

- run: yarn install --frozen-lockfile
- name: test

- name: test:cli
if: steps.filter.outputs.cli == 'true'
env:
CI: true
WITH_LOG: true
LIGHTHOUSE_CHROMIUM_PATH: 'which google-chrome-stable'
run: npm run test

ci-success:
name: ci
if: ${{ success() }}
needs:
- test
runs-on: ubuntu-latest
steps:
- name: CI succeeded
run: exit 0
run: yarn test:cli

0 comments on commit c55a69a

Please sign in to comment.